From 332d8c7818ba049a4afc00cd1feafd9acc4b5aaf Mon Sep 17 00:00:00 2001 From: Ian Martin Date: Wed, 24 Feb 2016 12:14:05 -0500 Subject: [PATCH] make: use $(OBJDUMP) and $(OBJDUMPFLAGS) in the main objdump target too. --- Makefile.include | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.include b/Makefile.include index 525f86fd68..55ff7092e2 100644 --- a/Makefile.include +++ b/Makefile.include @@ -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