fix arm64

This commit is contained in:
Furkan Mudanyali 2023-11-29 09:47:21 +03:00
parent ece5dd22c4
commit 6ea7346d97
2 changed files with 11 additions and 10 deletions

View File

@ -27,6 +27,7 @@ override LDFLAGS := \
--no-dynamic-linker \
--no-omagic \
-z noexecstack \
-T arch/aarch64/linker.ld \
--no-warn-rwx-segments
.PHONY: all
@ -47,6 +48,6 @@ run: asagiri.img
### Bootloader
uboot:
git clone https://github.com/u-boot/u-boot.git --branch=v2023.10 --depth=1 2>/dev/null | true
sed -i '/panic("FDT and ATAGS support not compiled in\\n");/c\' u-boot/arch/arm/lib/bootm.c
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-