diff mbox

[U-Boot,V3,1/2] Makefile: generate symbol list from u-boot

Message ID 1454967856-29607-1-git-send-email-swarren@wwwdotorg.org
State Accepted
Commit 7ed4848bb86c562707a02333a6f2f816d0e48955
Delegated to: Tom Rini
Headers show

Commit Message

Stephen Warren Feb. 8, 2016, 9:44 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

This information may be useful for both debugging, and processes that want
to perform simple forms of introspection on the U-Boot binary, such as
determining the set of "ut" subtests that are compiled in.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
---
v3: s/syms/sym/ in symbol file name.
v2: New patch.
---
 Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Tom Rini Feb. 15, 2016, 10:36 p.m. UTC | #1
On Mon, Feb 08, 2016 at 02:44:15PM -0700, Stephen Warren wrote:

> From: Stephen Warren <swarren@nvidia.com>
> 
> This information may be useful for both debugging, and processes that want
> to perform simple forms of introspection on the U-Boot binary, such as
> determining the set of "ut" subtests that are compiled in.
> 
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 430dd4f83e8c..42fad45afee1 100644
--- a/Makefile
+++ b/Makefile
@@ -732,7 +732,7 @@  DO_STATIC_RELA =
 endif
 
 # Always append ALL so that arch config.mk's can add custom ones
-ALL-y += u-boot.srec u-boot.bin System.map u-boot.cfg binary_size_check
+ALL-y += u-boot.srec u-boot.bin u-boot.sym System.map u-boot.cfg binary_size_check
 
 ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
 ifeq ($(CONFIG_SPL_FSL_PBL),y)
@@ -1178,6 +1178,11 @@  ifeq ($(CONFIG_KALLSYMS),y)
 	$(call cmd,u-boot__) common/system_map.o
 endif
 
+quiet_cmd_sym ?= SYM     $@
+      cmd_sym ?= $(OBJDUMP) -t $< > $@
+u-boot.sym: u-boot FORCE
+	$(call if_changed,sym)
+
 # The actual objects are generated when descending,
 # make sure no implicit rule kicks in
 $(sort $(u-boot-init) $(u-boot-main)): $(u-boot-dirs) ;