ports: Allow using banan-os cmake toolchain file for ports
This commit is contained in:
@@ -6,7 +6,7 @@ if (( $# != 1 )); then
|
||||
fi
|
||||
|
||||
if [[ -z $BANAN_ROOT_DIR ]]; then
|
||||
BANAN_ROOT_DIR="$(realpath $(dirname $(realpath $0))/..)"
|
||||
export BANAN_ROOT_DIR="$(realpath $(dirname $(realpath $0))/..)"
|
||||
fi
|
||||
|
||||
source "$BANAN_ROOT_DIR/script/config.sh"
|
||||
@@ -29,6 +29,8 @@ export OBJDUMP="$BANAN_TOOLCHAIN_TRIPLE-objdump"
|
||||
export STRIP="$BANAN_TOOLCHAIN_TRIPLE-strip"
|
||||
export CXXFILT="$BANAN_TOOLCHAIN_TRIPLE-c++filt"
|
||||
|
||||
export CMAKE_TOOLCHAIN_FILE="$BANAN_TOOLCHAIN_DIR/Toolchain.txt"
|
||||
|
||||
pushd "$BANAN_ROOT_DIR" >/dev/null
|
||||
./bos all && ./bos install || exit 1
|
||||
popd >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user