aboutsummaryrefslogtreecommitdiff
path: root/lib_blackfin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib_blackfin/Makefile')
-rw-r--r--lib_blackfin/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib_blackfin/Makefile b/lib_blackfin/Makefile
index 46ef7f331..e32ecc92d 100644
--- a/lib_blackfin/Makefile
+++ b/lib_blackfin/Makefile
@@ -47,9 +47,12 @@ COBJS-y += string.o
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
-$(LIB): $(obj).depend $(OBJS)
+$(LIB): $(obj).depend $(OBJS) $(obj)u-boot.lds
$(AR) $(ARFLAGS) $@ $(OBJS)
+$(obj)u-boot.lds: u-boot.lds.S
+ $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
+
#########################################################################
# defines $(obj).depend target