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

@ -47,7 +47,7 @@ asagiri.img: asagiri
ifeq ($(ARCH),aarch64)
$(OBJCOPY) -O binary build/bin/yukari build/yukari.bin
SOURCE_DATE_EPOCH=0 ./u-boot/tools/mkimage -A arm64 -C none -O linux -T kernel -d build/yukari.bin -a 0x1000000 -e 0x1000000 build/yukari.uimg
SOURCE_DATE_EPOCH=0 ./u-boot/tools/mkimage -A arm64 -C none -T script -n "Boot script" -d "arch/aarch64/res/boot.cmd" build/boot.scr
SOURCE_DATE_EPOCH=0 ./u-boot/tools/mkimage -A arm64 -C none -T script -n "Boot script" -d "arch/aarch64/res/boot.cmd" build/boot.scr
endif
# Create disk drive

View File

@ -19,14 +19,15 @@ override CFLAGS := \
-Iyukari/include \
-D_ARCH_AARCH64
override LDFLAGS := \
-m aarch64elf \
-nostdlib \
-static \
-pie \
--no-dynamic-linker \
--no-omagic \
-z noexecstack \
override LDFLAGS := \
-m aarch64elf \
-nostdlib \
-static \
-pie \
--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-