Scripts for u-boot

This commit is contained in:
Joris van Rantwijk 2024-01-05 12:44:53 +01:00
parent cc4172f905
commit b15bde58a1
3 changed files with 21 additions and 0 deletions

3
os/02_get_uboot.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
git clone https://github.com/u-boot/u-boot.git --single-branch --branch v2023.10

View File

@ -10,3 +10,4 @@ cp -a config/buildroot_puzzlefw_defconfig "$BUILDROOT_DIR/.config"
make -C "$BUILDROOT_DIR" olddefconfig make -C "$BUILDROOT_DIR" olddefconfig
make -C "$BUILDROOT_DIR" make -C "$BUILDROOT_DIR"
ln -sf "$BUILDROOT_DIR" buildroot

17
os/12_build_uboot.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
BUILDDIR="$(realpath buildroot/output/host/bin)"
if [ ! -x "$BUILDDIR/arm-linux-gcc" ]; then
echo "ERROR: Missing $BUILDDIR/arm-linux-gcc" >&2
echo " Build buildroot to prepare the arm-linux toolchain" >&2
exit 1
fi
export PATH="$BUILDDIR:$PATH"
make -C u-boot CROSS_COMPILE=arm-linux- distclean
make -C u-boot CROSS_COMPILE=arm-linux- xilinx_zynq_virt_config
make -C u-boot CROSS_COMPILE=arm-linux-