Add u-boot to make clean and make u-boot compilation multi-threaded

This commit is contained in:
Sateallia 2024-01-01 04:22:39 +03:00
parent a4f71e8161
commit 139978fd98
2 changed files with 3 additions and 2 deletions

View File

@ -103,6 +103,7 @@ endif
.PHONY: clean
clean:
rm -rf build
if [ -d "u-boot" ]; then (cd u-boot && make clean); fi
.PHONY: distclean
distclean: clean

View File

@ -30,5 +30,5 @@ run: asagiri.img
uboot:
git clone https://github.com/u-boot/u-boot.git --branch=v2023.10 --depth=1 2>/dev/null | true
sed -i.bak '/panic("FDT and ATAGS support not compiled in\\n");/c\' u-boot/arch/arm/lib/bootm.c
SOURCE_DATE_EPOCH=0 $(MAKE) -C u-boot rpi_3_defconfig ARCH=arm CROSS_COMPILE=aarch64-none-elf-
SOURCE_DATE_EPOCH=0 $(MAKE) -C u-boot all ARCH=arm CROSS_COMPILE=aarch64-none-elf-
SOURCE_DATE_EPOCH=0 $(MAKE) -j$(nproc) -C u-boot rpi_3_defconfig ARCH=arm CROSS_COMPILE=aarch64-none-elf-
SOURCE_DATE_EPOCH=0 $(MAKE) -j$(nproc) -C u-boot all ARCH=arm CROSS_COMPILE=aarch64-none-elf-