mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-25 16:12:05 +00:00
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>
This commit is contained in:
parent
3801a15f67
commit
8a156fb6e4
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -517,7 +517,7 @@ $(obj)u-boot: depend \
|
||||||
$(SUBDIR_TOOLS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
|
$(SUBDIR_TOOLS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
|
||||||
$(GEN_UBOOT)
|
$(GEN_UBOOT)
|
||||||
ifeq ($(CONFIG_KALLSYMS),y)
|
ifeq ($(CONFIG_KALLSYMS),y)
|
||||||
smap=`$(call SYSTEM_MAP,u-boot) | \
|
smap=`$(call SYSTEM_MAP,$(obj)u-boot) | \
|
||||||
awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
|
awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
|
||||||
$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
|
$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
|
||||||
-c common/system_map.c -o $(obj)common/system_map.o
|
-c common/system_map.c -o $(obj)common/system_map.o
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue