summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVasili Galka <vvv444@gmail.com>2014-08-14 12:40:55 +0300
committerTom Rini <trini@ti.com>2014-08-21 12:01:29 -0400
commitcac8f38aff03604699e2af153f5a404231e90354 (patch)
treed6da6c30e7dfb3d6f48615f385176a71c8b37622 /Makefile
parent478a32875a222ee42755c68b80593885e2d666f6 (diff)
downloadu-boot-imx-cac8f38aff03604699e2af153f5a404231e90354.zip
u-boot-imx-cac8f38aff03604699e2af153f5a404231e90354.tar.gz
u-boot-imx-cac8f38aff03604699e2af153f5a404231e90354.tar.bz2
Makefile: Use Kbuild style for system_map.o generation step
The command generating the "common/system_map.o" file was always shown during the build making the output messy. Now it is called using the Kbuild "cmd" macro, so that the full command is shown only when building in verbose mode. Signed-off-by: Vasili Galka <vvv444@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index de65e21..b5b3560 100644
--- a/Makefile
+++ b/Makefile
@@ -1004,13 +1004,17 @@ quiet_cmd_u-boot__ ?= LD $@
--start-group $(u-boot-main) --end-group \
$(PLATFORM_LIBS) -Map u-boot.map
-u-boot: $(u-boot-init) $(u-boot-main) u-boot.lds
- $(call if_changed,u-boot__)
-ifeq ($(CONFIG_KALLSYMS),y)
+quiet_cmd_smap = GEN common/system_map.o
+cmd_smap = \
smap=`$(call SYSTEM_MAP,u-boot) | \
awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
$(CC) $(c_flags) -DSYSTEM_MAP="\"$${smap}\"" \
-c $(srctree)/common/system_map.c -o common/system_map.o
+
+u-boot: $(u-boot-init) $(u-boot-main) u-boot.lds
+ $(call if_changed,u-boot__)
+ifeq ($(CONFIG_KALLSYMS),y)
+ $(call cmd,smap)
$(call cmd,u-boot__) common/system_map.o
endif