From 0dafba4f6d9d9fa706fe3a0ec38860515257ba0f Mon Sep 17 00:00:00 2001 From: Ian Martin Date: Sun, 1 Dec 2013 16:22:37 -0500 Subject: [PATCH] Add a rule for generating assembly listings on mc1322x targets, for example: "make webserver6.lst". --- cpu/mc1322x/Makefile.mc1322x | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu/mc1322x/Makefile.mc1322x b/cpu/mc1322x/Makefile.mc1322x index 6d62d95a4..40dfd945c 100644 --- a/cpu/mc1322x/Makefile.mc1322x +++ b/cpu/mc1322x/Makefile.mc1322x @@ -34,6 +34,7 @@ AS = $(CROSS)as AR = $(CROSS)ar NM = $(CROSS)nm OBJCOPY = $(CROSS)objcopy +OBJDUMP = $(CROSS)objdump STRIP = $(CROSS)strip PROJECT_OBJECTFILES += ${addprefix $(OBJECTDIR)/,$(CONTIKI_TARGET_MAIN:.c=.o)} @@ -123,4 +124,6 @@ CUSTOM_RULE_C_TO_CO=yes $(TRACE_CC) $(Q)$(CC) $(LDFLAGS) $(CFLAGS) -nostartfiles -o $@ $(filter-out %.a %.lds,$^) $(filter %.a,$^) $(filter %.a,$^) +%.lst: %.elf + $(OBJDUMP) -DS $< > $@