2024-01-07 00:51:38 +01:00
|
|
|
#
|
|
|
|
# Common environment variables for build scripts
|
|
|
|
#
|
|
|
|
|
|
|
|
DOWNLOAD_DIR="downloads"
|
|
|
|
|
|
|
|
BUILDROOT_VERSION="buildroot-2023.02.8"
|
|
|
|
BUILDROOT_DIR="$BUILDROOT_VERSION"
|
|
|
|
TOOLCHAIN_DIR="$(realpath -m "$BUILDROOT_DIR/output/host/bin")"
|
|
|
|
|
|
|
|
UBOOT_VERSION="v2023.10"
|
|
|
|
UBOOT_DIR="u-boot"
|
|
|
|
|
2024-01-12 19:16:02 +01:00
|
|
|
LINUX_VERSION="xilinx-v2023.2"
|
|
|
|
LINUX_DIR="linux-xlnx"
|
2024-01-07 00:51:38 +01:00
|
|
|
|
|
|
|
BOOTIMG_DIR="boot_img"
|
|
|
|
SDCARD_DIR="sdcard_files"
|
2024-01-07 01:06:45 +01:00
|
|
|
|
2024-10-11 00:17:08 +02:00
|
|
|
XSA_FILE="../fpga/redpitaya_puzzlefw.xsa"
|
|
|
|
FIRMWARE_FILES="../fpga/puzzlefw_top.bit.bin ../fpga/puzzlefw_top_4ch.bit.bin"
|
2024-09-19 21:08:22 +02:00
|
|
|
|
2024-01-07 01:06:45 +01:00
|
|
|
setup_toolchain () {
|
|
|
|
if [ ! -x "$TOOLCHAIN_DIR/arm-linux-gcc" ]; then
|
|
|
|
echo "ERROR: Missing $TOOLCHAIN_DIR/arm-linux-gcc" >&2
|
|
|
|
echo " Build buildroot to prepare the arm-linux toolchain" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
export PATH="$TOOLCHAIN_DIR:$PATH"
|
|
|
|
}
|