]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/jse/Makefile
mtd: nand: kirkwood: enable BCH ECC and add support for dynamically switching ECC...
[karo-tx-uboot.git] / board / jse / Makefile
index edbfc3f776d009cd9a95929c915219ead9c597e9..dfbce6b2df3d7d675818a62ca45fa14dc1504f40 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o sdram.o flash.o host_bridge.o
 SOBJS  = init.o
@@ -33,13 +33,7 @@ OBJS := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) crv $@ $(OBJS)
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 #########################################################################