fix arm64
This commit is contained in:
parent
ece5dd22c4
commit
6ea7346d97
2
Makefile
2
Makefile
@ -47,7 +47,7 @@ asagiri.img: asagiri
|
|||||||
ifeq ($(ARCH),aarch64)
|
ifeq ($(ARCH),aarch64)
|
||||||
$(OBJCOPY) -O binary build/bin/yukari build/yukari.bin
|
$(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 -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
|
endif
|
||||||
|
|
||||||
# Create disk drive
|
# Create disk drive
|
||||||
|
@ -19,14 +19,15 @@ override CFLAGS := \
|
|||||||
-Iyukari/include \
|
-Iyukari/include \
|
||||||
-D_ARCH_AARCH64
|
-D_ARCH_AARCH64
|
||||||
|
|
||||||
override LDFLAGS := \
|
override LDFLAGS := \
|
||||||
-m aarch64elf \
|
-m aarch64elf \
|
||||||
-nostdlib \
|
-nostdlib \
|
||||||
-static \
|
-static \
|
||||||
-pie \
|
-pie \
|
||||||
--no-dynamic-linker \
|
--no-dynamic-linker \
|
||||||
--no-omagic \
|
--no-omagic \
|
||||||
-z noexecstack \
|
-z noexecstack \
|
||||||
|
-T arch/aarch64/linker.ld \
|
||||||
--no-warn-rwx-segments
|
--no-warn-rwx-segments
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
@ -47,6 +48,6 @@ run: asagiri.img
|
|||||||
### Bootloader
|
### Bootloader
|
||||||
uboot:
|
uboot:
|
||||||
git clone https://github.com/u-boot/u-boot.git --branch=v2023.10 --depth=1 2>/dev/null | true
|
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 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) -C u-boot all ARCH=arm CROSS_COMPILE=aarch64-none-elf-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user