summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2016-02-08 14:44:15 -0700
committerTom Rini <trini@konsulko.com>2016-02-15 20:58:26 +0000
commit7ed4848bb86c562707a02333a6f2f816d0e48955 (patch)
tree9e29b19d739fec7724fad9415311c84ba8430c7d /Makefile
parent4c80c53c00ac6583f22938fc98e4df688acdf4ce (diff)
downloadtalos-obmc-uboot-7ed4848bb86c562707a02333a6f2f816d0e48955.tar.gz
talos-obmc-uboot-7ed4848bb86c562707a02333a6f2f816d0e48955.zip
Makefile: generate symbol list from u-boot
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 77cb8fa294..4190bf5844 100644
--- a/Makefile
+++ b/Makefile
@@ -728,7 +728,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)
@@ -1174,6 +1174,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) ;
OpenPOWER on IntegriCloud