Ports: Update the port system once again!

This commit is contained in:
2024-08-09 17:08:07 +03:00
parent a12bfe4639
commit 58a3a480b9
7 changed files with 38 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
if [[ -z $BANAN_ROOT_DIR ]]; then
if ! [[ -z $BANAN_SCRIPT_DIR ]]; then
export BANAN_ROOT_DIR=$BANAN_SCRIPT_DIR/..
export BANAN_ROOT_DIR="$(realpath $BANAN_SCRIPT_DIR/..)"
else
echo "You must set the BANAN_ROOT_DIR environment variable" >&2
exit 1
@@ -13,10 +13,12 @@ fi
export BANAN_TOOLCHAIN_DIR=$BANAN_ROOT_DIR/toolchain
export BANAN_TOOLCHAIN_PREFIX=$BANAN_TOOLCHAIN_DIR/local
export BANAN_TOOLCHAIN_TRIPLE_PREFIX=$BANAN_ARCH-banan_os
export BANAN_TOOLCHAIN_TRIPLE=$BANAN_ARCH-banan_os
export BANAN_BUILD_DIR=$BANAN_ROOT_DIR/build
export BANAN_PORT_DIR=$BANAN_ROOT_DIR/ports
export BANAN_SYSROOT=$BANAN_BUILD_DIR/sysroot
export BANAN_SYSROOT_TAR=$BANAN_SYSROOT.tar