]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/qe/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / drivers / qe / Makefile
index 45a2fff62cab819366a10a0cae5817e470a6f1f3..8e9a035e9204738be30b49cc45a579dcd76bf156 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)qe.a
+LIB    := $(obj)libqe.o
 
 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
-COBJS  := qe.o uccf.o uec.o uec_phy.o $(COBJS-y)
+COBJS-$(CONFIG_QE) += qe.o uccf.o uec.o uec_phy.o
 
+COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################