Initial commit
This commit is contained in:
22
build-uboot.sh
Executable file
22
build-uboot.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# vim: set sw=4 ts=4 sts=4 et :
|
||||
|
||||
set -e
|
||||
|
||||
. ./config
|
||||
|
||||
cd u-boot
|
||||
if [ ! -f .patched ]; then
|
||||
for x in ../patches/uboot/*.patch; do
|
||||
printf 'Applying patch %s ...\n' "${x##*/}"
|
||||
patch -p1 < "${x}"
|
||||
done
|
||||
: > .patched
|
||||
fi
|
||||
cat configs/rpi_4_defconfig ../u-boot.config > configs/yellow_defconfig
|
||||
make yellow_defconfig
|
||||
CROSS_COMPILE=${target}- make
|
||||
cd ..
|
||||
|
||||
mkdir -p output/efi-part
|
||||
cp -au u-boot/u-boot.bin output/efi-part
|
||||
Reference in New Issue
Block a user