1
0
rocket-chip/bootrom/Makefile
2017-03-24 18:18:01 -07:00

16 lines
289 B
Makefile

bootrom_img = bootrom.img
GCC=riscv64-unknown-elf-gcc
OBJCOPY=riscv64-unknown-elf-objcopy
all: $(bootrom_img)
%.img: %.bin
dd if=$< of=$@ bs=128 count=1
%.bin: %.elf
$(OBJCOPY) -O binary $< $@
%.elf: %.S linker.ld
$(GCC) -Tlinker.ld $< -nostdlib -static -Wl,--no-gc-sections -o $@