From 159a8fe6f82102e183b700dcc46eed00ca22b749 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Mon, 17 Apr 2017 19:45:42 -0700 Subject: debug: Use more unique debug ROM names --- debug_rom/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'debug_rom/Makefile') 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/" > $@ -- cgit v1.1