ports: Allow using banan-os cmake toolchain file for ports

This commit is contained in:
2024-12-03 20:18:24 +02:00
parent 0dd81328ff
commit 3b7b6beca5
2 changed files with 14 additions and 3 deletions

View File

@@ -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