Move debug rom link map to the right place.
[riscv-isa-sim.git] / debug_rom / Makefile
index d66b84f2feac76716f6055968fcc64bc0a27119f..ed4cb9324cedd18d4d7db6d6dd6720d528b90337 100644 (file)
@@ -5,7 +5,7 @@ CC = $(RISCV)/bin/riscv64-unknown-elf-gcc
 OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy
 
 %.o:   %.S
-       $(CC) -c $<
+       $(CC) -I.. -c $<
 
 debug_rom.h:   debug_rom.raw
        xxd -i $^ | sed "s/^unsigned/static const unsigned/" > $@
@@ -13,7 +13,7 @@ debug_rom.h:  debug_rom.raw
 debug_rom.raw: debug_rom
        $(OBJCOPY) -O binary --only-section .text debug_rom debug_rom.raw
 
-debug_rom:     debug_rom.o
+debug_rom:     debug_rom.o link.ld
        $(CC) -nostdlib -nostartfiles -Tlink.ld -o $@ $^
 
 clean: