initial commit

This commit is contained in:
Howard Mao
2016-10-21 16:03:26 -07:00
commit 7074420aba
17 changed files with 274 additions and 0 deletions

16
bootrom/Makefile Normal file
View File

@@ -0,0 +1,16 @@
bootrom_img = bootrom.img
GCC=riscv64-unknown-elf-gcc
OBJCOPY=riscv64-unknown-elf-objcopy
OBJDUMP=riscv64-unknown-elf-objdump
all: $(bootrom_img)
%.img: %.elf
$(OBJCOPY) -O binary --change-addresses=-0x1000 --only-section .text $< $@
%.elf: %.S linker.ld
$(GCC) -Tlinker.ld $< -nostdlib -static -o $@
%.dump: %.elf
$(OBJDUMP) -d $< > $@