aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/Makefile
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-04-17 21:21:35 -0700
committerMegan Wachs <megan@sifive.com>2017-04-17 21:21:35 -0700
commit3526283513b12afc57c3430c70190fe1630564e6 (patch)
tree98d3b5871730d1d22fd843b631203d4a8f3f8c5f /debug_rom/Makefile
parent159a8fe6f82102e183b700dcc46eed00ca22b749 (diff)
downloadspike-3526283513b12afc57c3430c70190fe1630564e6.zip
spike-3526283513b12afc57c3430c70190fe1630564e6.tar.gz
spike-3526283513b12afc57c3430c70190fe1630564e6.tar.bz2
debug: move the debug_rom defines to a seperate file
Diffstat (limited to 'debug_rom/Makefile')
-rw-r--r--debug_rom/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/debug_rom/Makefile b/debug_rom/Makefile
index 825aed8..4e9093c 100644
--- a/debug_rom/Makefile
+++ b/debug_rom/Makefile
@@ -7,12 +7,9 @@ OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy
COMPILE = $(CC) -nostdlib -nostartfiles -I.. -Tlink.ld
ELFS = debug_rom
-DEPS = debug_rom.S link.ld
+DEPS = debug_rom.S link.ld debug_rom_defines.h
-all: $(patsubst %,%.h,$(ELFS)) $(patsubst %,%_defines.h,$(ELFS))
-
-%_defines.h: %.S
- grep define $^ > $@
+all: $(patsubst %,%.h,$(ELFS))
%.h: %.raw
xxd -i $^ | sed "s/^unsigned/static const unsigned/" > $@