diff options
author | Megan Wachs <megan@sifive.com> | 2017-04-17 19:45:42 -0700 |
---|---|---|
committer | Megan Wachs <megan@sifive.com> | 2017-04-17 19:45:42 -0700 |
commit | 159a8fe6f82102e183b700dcc46eed00ca22b749 (patch) | |
tree | 505932eb765e31e5d34aca10b709e87db5bf85b5 /debug_rom/Makefile | |
parent | d46f694d85cc017d8e768cf3f2cd3ed934dec3e5 (diff) | |
download | riscv-isa-sim-159a8fe6f82102e183b700dcc46eed00ca22b749.zip riscv-isa-sim-159a8fe6f82102e183b700dcc46eed00ca22b749.tar.gz riscv-isa-sim-159a8fe6f82102e183b700dcc46eed00ca22b749.tar.bz2 |
debug: Use more unique debug ROM names
Diffstat (limited to 'debug_rom/Makefile')
-rw-r--r-- | debug_rom/Makefile | 5 |
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/" > $@ |