Scripts for u-boot
This commit is contained in:
parent
cc4172f905
commit
b15bde58a1
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git clone https://github.com/u-boot/u-boot.git --single-branch --branch v2023.10
|
|
@ -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
|
|
@ -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-
|
Loading…
Reference in New Issue