]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fix out of tree building with kallsyms
authorMike Frysinger <vapier@gentoo.org>
Mon, 30 Jul 2012 22:44:53 +0000 (22:44 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 2 Sep 2012 15:41:38 +0000 (17:41 +0200)
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>
Makefile

index b9011c8cd9d3ce2cae9b45d45867e976f0542c36..058fb531ef247283c7712fa6543fdac834d38f3d 100644 (file)
--- 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