1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make: use $(OBJDUMP) and $(OBJDUMPFLAGS) in the main objdump target too.

This commit is contained in:
Ian Martin 2016-02-24 12:14:05 -05:00
parent ce71e53d74
commit 332d8c7818

View File

@ -316,12 +316,15 @@ reset:
exit 1; }
$(RESET) $(RESET_FLAGS)
# Default OBJDUMPFLAGS for platforms which do not specify it:
OBJDUMPFLAGS ?= -S -D -h
objdump:
$(AD)command -v $(PREFIX)objdump >/dev/null 2>&1 || \
$(AD)command -v $(OBJDUMP) >/dev/null 2>&1 || \
{ $(COLOR_ECHO) \
'${COLOR_RED} Objdump program $(PREFIX)objdump not found. Aborting.${COLOR_RESET}'; \
'${COLOR_RED} Objdump program $(OBJDUMP) not found. Aborting.${COLOR_RESET}'; \
exit 1; }
$(PREFIX)objdump -S -D -h $(ELFFILE) | less
$(OBJDUMP) $(OBJDUMPFLAGS) $(ELFFILE) | less
# Generate an XML file containing all macro definitions and include paths for
# use in Eclipse CDT