aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/Makefile
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-04-17 19:45:42 -0700
committerMegan Wachs <megan@sifive.com>2017-04-17 19:45:42 -0700
commit159a8fe6f82102e183b700dcc46eed00ca22b749 (patch)
tree505932eb765e31e5d34aca10b709e87db5bf85b5 /debug_rom/Makefile
parentd46f694d85cc017d8e768cf3f2cd3ed934dec3e5 (diff)
downloadspike-159a8fe6f82102e183b700dcc46eed00ca22b749.zip
spike-159a8fe6f82102e183b700dcc46eed00ca22b749.tar.gz
spike-159a8fe6f82102e183b700dcc46eed00ca22b749.tar.bz2
debug: Use more unique debug ROM names
Diffstat (limited to 'debug_rom/Makefile')
-rw-r--r--debug_rom/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug_rom/Makefile b/debug_rom/Makefile
index fa01545..825aed8 100644
--- a/debug_rom/Makefile
+++ b/debug_rom/Makefile
@@ -9,7 +9,10 @@ COMPILE = $(CC) -nostdlib -nostartfiles -I.. -Tlink.ld
ELFS = debug_rom
DEPS = debug_rom.S link.ld
-all: $(patsubst %,%.h,$(ELFS))
+all: $(patsubst %,%.h,$(ELFS)) $(patsubst %,%_defines.h,$(ELFS))
+
+%_defines.h: %.S
+ grep define $^ > $@
%.h: %.raw
xxd -i $^ | sed "s/^unsigned/static const unsigned/" > $@