generate BootROM contents from assembly code
This commit is contained in:
1 parent
dab96096b4
commit
dd1fed41b6
11 files changed
+49
-19
No files matched your search
@@ -0,0 +1,12 @@
|
||||
bootrom_img = bootrom.img
|
||||
|
||||
GCC=riscv64-unknown-elf-gcc
|
||||
OBJCOPY=riscv64-unknown-elf-objcopy
|
||||
|
||||
all: $(bootrom_img)
|
||||
|
||||
%.img: %.elf
|
||||
$(OBJCOPY) -O binary --change-addresses=-0x1000 --only-section .text $< $@
|
||||
|
||||
%.elf: %.S linker.ld
|
||||
$(GCC) -Tlinker.ld $< -nostdlib -static -o $@
|
||||
Reference in new issue
Block a user