diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-04 19:26:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-04 19:26:55 -0500 |
commit | 0858b835e7ea501ea084d34cef75932f098342bb (patch) | |
tree | b25a0aa1aad0f92cfb6217aa4ce3160e2b1abeab | |
parent | 8dc48d71a4be753ea9f84956cd33600de35fad04 (diff) | |
download | u-boot-imx-0858b835e7ea501ea084d34cef75932f098342bb.zip u-boot-imx-0858b835e7ea501ea084d34cef75932f098342bb.tar.gz u-boot-imx-0858b835e7ea501ea084d34cef75932f098342bb.tar.bz2 |
add support for Blackfin symbol prefixes to examples
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | blackfin_config.mk | 2 | ||||
-rw-r--r-- | examples/Makefile | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -312,7 +312,7 @@ $(obj)u-boot.dis: $(obj)u-boot $(OBJDUMP) -d $< > $@ $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) - UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ + UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ -Map u-boot.map -o u-boot diff --git a/blackfin_config.mk b/blackfin_config.mk index beb9498..e91318e 100644 --- a/blackfin_config.mk +++ b/blackfin_config.mk @@ -23,3 +23,5 @@ PLATFORM_RELFLAGS += -ffixed-P5 PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN + +SYM_PREFIX = _ diff --git a/examples/Makefile b/examples/Makefile index 79af4b0..d63fa70 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -162,7 +162,7 @@ $(LIB): $(obj).depend $(LIBOBJS) $(ELF): $(obj)%: $(obj)%.o $(LIB) $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \ - -o $@ -e $(notdir $(<:.o=)) $< $(LIB) \ + -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \ -L$(gcclibdir) -lgcc $(SREC): |