Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
libarch, arch: NOARCH support
Browse files Browse the repository at this point in the history
  • Loading branch information
Artoria2e5 committed Mar 31, 2016
1 parent 530e387 commit e5175eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/NOARCH.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# dummy
3 changes: 2 additions & 1 deletion lib/arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ arch_loadfile(){
}

arch_initcross(){
if [[ $ABBUILD == $ABHOST ]]; then
if [[ $ABBUILD == $ABHOST || $HOST == NOARCH ]]; then

This comment has been minimized.

Copy link
@Artoria2e5

Artoria2e5 Mar 31, 2016

Author Contributor

WWWWWWTF

return 0
fi
: "${HOSTSYSROOT=/var/ab/cross-root/$ABHOST}"
Expand All @@ -66,5 +66,6 @@ arch_initcross(){
export PATH="$(dirname "$HOSTTOOLPREFIX"):$PATH"
}

# todo: make these variables I guess?
arch_lib(){ echo "$(arch_crossroot "$@")/usr/lib"; }
arch_crossroot() { echo "/var/ab/cross-root/$ABHOST"; }

0 comments on commit e5175eb

Please sign in to comment.