mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 10:12:14 +02:00
add support for Blackfin symbol prefixes to examples
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
2
Makefile
2
Makefile
@@ -312,7 +312,7 @@ $(obj)u-boot.dis: $(obj)u-boot
|
|||||||
$(OBJDUMP) -d $< > $@
|
$(OBJDUMP) -d $< > $@
|
||||||
|
|
||||||
$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
|
$(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) \
|
cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
|
||||||
--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
|
--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
|
||||||
-Map u-boot.map -o u-boot
|
-Map u-boot.map -o u-boot
|
||||||
|
@@ -23,3 +23,5 @@
|
|||||||
|
|
||||||
PLATFORM_RELFLAGS += -ffixed-P5
|
PLATFORM_RELFLAGS += -ffixed-P5
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
|
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
|
||||||
|
|
||||||
|
SYM_PREFIX = _
|
||||||
|
@@ -162,7 +162,7 @@ $(LIB): $(obj).depend $(LIBOBJS)
|
|||||||
$(ELF):
|
$(ELF):
|
||||||
$(obj)%: $(obj)%.o $(LIB)
|
$(obj)%: $(obj)%.o $(LIB)
|
||||||
$(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
|
$(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
|
||||||
-o $@ -e $(notdir $(<:.o=)) $< $(LIB) \
|
-o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \
|
||||||
-L$(gcclibdir) -lgcc
|
-L$(gcclibdir) -lgcc
|
||||||
|
|
||||||
$(SREC):
|
$(SREC):
|
||||||
|
Reference in New Issue
Block a user