mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
Blackfin: use common code to preprocess linker script
Now that the common code preprocesses the linker script, the Blackfin code no longer needs to do it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:

committed by
Wolfgang Denk

parent
4d3758c835
commit
2ed0869d30
@ -48,12 +48,9 @@ COBJS-y += string.o
|
|||||||
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS) $(obj)u-boot.lds
|
$(LIB): $(obj).depend $(OBJS)
|
||||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
|
||||||
$(obj)u-boot.lds: u-boot.lds.S
|
|
||||||
$(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
|
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# defines $(obj).depend target
|
# defines $(obj).depend target
|
||||||
|
@ -62,5 +62,5 @@ endif
|
|||||||
LDR_FLAGS += $(LDR_FLAGS-y)
|
LDR_FLAGS += $(LDR_FLAGS-y)
|
||||||
|
|
||||||
ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),)
|
ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),)
|
||||||
LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds
|
LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds.S
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user