2023-10-23 13:27:23 +03:00
|
|
|
if [[ -z $BANAN_ROOT_DIR ]]; then
|
2023-10-24 16:48:46 +03:00
|
|
|
if ! [[ -z $BANAN_SCRIPT_DIR ]]; then
|
2023-10-23 13:27:23 +03:00
|
|
|
export BANAN_ROOT_DIR=$BANAN_SCRIPT_DIR/..
|
|
|
|
else
|
|
|
|
echo "You must set the BANAN_ROOT_DIR environment variable" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z $BANAN_ARCH ]]; then
|
2023-10-24 16:48:46 +03:00
|
|
|
export BANAN_ARCH=x86_64
|
2023-10-23 13:27:23 +03:00
|
|
|
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_BUILD_DIR=$BANAN_ROOT_DIR/build
|
|
|
|
|
|
|
|
export BANAN_SYSROOT=$BANAN_BUILD_DIR/sysroot
|
2023-11-04 17:50:43 +02:00
|
|
|
export BANAN_SYSROOT_TAR=$BANAN_SYSROOT.tar
|
2023-10-23 13:27:23 +03:00
|
|
|
|
|
|
|
export BANAN_DISK_IMAGE_PATH=$BANAN_BUILD_DIR/banan-os.img
|
|
|
|
|
|
|
|
if [[ -z $BANAN_UEFI_BOOT ]]; then
|
|
|
|
export BANAN_UEFI_BOOT=0
|
|
|
|
fi
|
2023-11-18 17:18:03 +02:00
|
|
|
|
|
|
|
if [[ -z $BANAN_BOOTLOADER ]]; then
|
|
|
|
export BANAN_BOOTLOADER="BANAN"
|
|
|
|
fi
|
2023-12-28 19:13:27 +02:00
|
|
|
|
|
|
|
source $BANAN_SCRIPT_DIR/check-requirements.sh
|