]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/bf527-ezkit/Makefile
arm:at91-boards: remove console_init_f where unnecessary
[karo-tx-uboot.git] / board / bf527-ezkit / Makefile
index c2b98ec74ab909218ba407d269140b6c8c613e4b..fdbcec59531a0c9834aaf4ccdef65ebdd908ff4c 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        := $(BOARD).o
 COBJS-$(CONFIG_VIDEO)      += video.o
@@ -36,17 +36,8 @@ SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS-y))
 
-$(LIB):        $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
-
-$(obj)u-boot.lds: u-boot.lds.S
-       $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak $(obj).depend
+$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 #########################################################################