aimee-os/build-uboot.sh

19 lines
346 B
Bash
Executable File

#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
set -e
. ./config
O="${1}"
./patch-uboot.sh
cd u-boot
cat configs/rpi_4_defconfig ../u-boot.config > configs/yellow_defconfig
make O="${O}"/u-boot yellow_defconfig
CROSS_COMPILE=${target}- make O="${O}"/u-boot -j$(nproc)
cd ..
mkdir -p "${O}"/efi-part
cp -u "${O}"/u-boot/u-boot.bin "${O}"/efi-part