Skip to content
Snippets Groups Projects
Commit 8a156fb6 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

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: default avatarMike Frysinger <vapier@gentoo.org>
parent 3801a15f
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment