wip: build u-boot with Portage

This commit is contained in:
2023-03-07 12:44:47 -06:00
parent 5f62193247
commit 189f1f656e
22 changed files with 194 additions and 52 deletions

View File

@@ -69,18 +69,10 @@ $(O)/efi-part/EFI/BOOT/BOOTAA64.efi: \
grub: $(O)/efi-part/EFI/BOOT/BOOTAA64.efi
$(O)/efi-part/u-boot.bin: \
build-uboot.sh \
u-boot.config
./build-uboot.sh "$(O)"
uboot: $(O)/efi-part/u-boot.bin
$(IMAGESDIR)/sdcard.img: \
genimage.cfg \
genimage.sh \
post-build.sh \
$(O)/efi-part/u-boot.bin \
$(O)/efi-part/EFI/BOOT/BOOTAA64.efi
./post-build.sh "$(O)"
./genimage.sh "$(O)" "$(IMAGESDIR)"
@@ -98,7 +90,6 @@ $(IMAGESDIR)/update.tar.zstd: \
./build-update.sh "$(IMAGESDIR)"
clean:
git -C u-boot clean -fdx && git -C u-boot checkout -- .
rm -rf $(O)/linux $(O)/output $(IMAGESDIR) $(O)/tmp
rm -f $(O)/.prepared $(O)/.host-tools
@@ -109,5 +100,4 @@ clean:
prepare \
sdcard.img \
squashfs \
uboot \
update.tar