From: Mike Frysinger Date: Mon, 30 Jul 2012 22:44:53 +0000 (+0000) Subject: fix out of tree building with kallsyms X-Git-Tag: v2012.10-rc1~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a156fb6e43208e77dd9a8b6265e491bc7814950;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/Makefile b/Makefile index b9011c8..058fb53 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