31 lines
		
	
	
		
			763 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			763 B
		
	
	
	
		
			Plaintext
		
	
	
	
| #
 | |
| # 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"
 | |
| 
 | |
| LINUX_VERSION="xilinx-v2023.2"
 | |
| LINUX_DIR="linux-xlnx"
 | |
| 
 | |
| BOOTIMG_DIR="boot_img"
 | |
| SDCARD_DIR="sdcard_files"
 | |
| 
 | |
| XSA_FILE="../fpga/vivado/output/redpitaya_puzzlefw.xsa"
 | |
| FIRMWARE_FILE="../fpga/vivado/output/puzzlefw_top.bit.bin"
 | |
| 
 | |
| 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"
 | |
| }
 |