mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Initial Risc-V64 support
This commit is contained in:
parent
160fc71781
commit
046cf898d5
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@ mykernel.aarch64.elf: kernel.c
|
||||||
|
|
||||||
mykernel.riscv64.elf: kernel.c
|
mykernel.riscv64.elf: kernel.c
|
||||||
riscv64-elf-gcc $(CFLAGS) -c kernel.c -o kernel.o
|
riscv64-elf-gcc $(CFLAGS) -c kernel.c -o kernel.o
|
||||||
@# fuck you GNU ld, not possible to set correct elf header flags
|
@# buggy GNU ld, not possible to set correct elf header flags, so we use a dd hack
|
||||||
riscv64-elf-ld -r -b binary -o font.o font.psf
|
riscv64-elf-ld -r -b binary -o font.o font.psf
|
||||||
@echo -ne '\005' | dd conv=notrunc of=font.o bs=1 seek=48 1>/dev/null 2>/dev/null
|
@printf '\005' | dd conv=notrunc of=font.o bs=1 seek=48 1>/dev/null 2>/dev/null
|
||||||
riscv64-elf-ld $(LDFLAGS) kernel.o font.o -o mykernel.riscv64.elf
|
riscv64-elf-ld $(LDFLAGS) kernel.o font.o -o mykernel.riscv64.elf
|
||||||
riscv64-elf-strip $(STRIPFLAGS) mykernel.riscv64.elf
|
riscv64-elf-strip $(STRIPFLAGS) mykernel.riscv64.elf
|
||||||
riscv64-elf-readelf -hls mykernel.riscv64.elf >mykernel.riscv64.txt
|
riscv64-elf-readelf -hls mykernel.riscv64.elf >mykernel.riscv64.txt
|
||||||
|
|
Loading…
Reference in a new issue