summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-30 22:44:53 +0000
committerWolfgang Denk <wd@denx.de>2012-09-02 17:41:38 +0200
commit8a156fb6e43208e77dd9a8b6265e491bc7814950 (patch)
tree19c05883a672a6a2c804b6bf18a7397a265b4f0c /Makefile
parent3801a15f67d66cf585db789d430c8f5808b0772b (diff)
downloadtalos-obmc-uboot-8a156fb6e43208e77dd9a8b6265e491bc7814950.tar.gz
talos-obmc-uboot-8a156fb6e43208e77dd9a8b6265e491bc7814950.zip
fix out of tree building with kallsyms
The call to SYSTEM_MAP assumes that the u-boot output is in $PWD when it really should be in $(obj). This fixes building out of tree. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b9011c8cd9..058fb531ef 100644
--- a/Makefile
+++ b/Makefile
@@ -517,7 +517,7 @@ $(obj)u-boot: depend \
$(SUBDIR_TOOLS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
$(GEN_UBOOT)
ifeq ($(CONFIG_KALLSYMS),y)
- smap=`$(call SYSTEM_MAP,u-boot) | \
+ smap=`$(call SYSTEM_MAP,$(obj)u-boot) | \
awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
-c common/system_map.c -o $(obj)common/system_map.o
OpenPOWER on IntegriCloud