Blackfin: unify u-boot linker scripts
[oweals/u-boot.git] / lib_blackfin / Makefile
index 46ef7f33169ee876e66a0eac9139e88d448b19e3..e32ecc92d355c84ca3084eedff882f9459324d61 100644 (file)
@@ -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