X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fqe%2FMakefile;h=ef4bdf8b24e7c7435ba722eedcbf265133fd3bfd;hb=cfff263f41e32c7ba2ee9162a8cc6423eb5a8390;hp=45a2fff62cab819366a10a0cae5817e470a6f1f3;hpb=10a3367955bc2033b288915f8f10d0e507fe2fa1;p=u-boot diff --git a/drivers/qe/Makefile b/drivers/qe/Makefile index 45a2fff62c..ef4bdf8b24 100644 --- a/drivers/qe/Makefile +++ b/drivers/qe/Makefile @@ -22,18 +22,19 @@ 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-$(and $(CONFIG_QE),$(CONFIG_OF_LIBFDT)) += fdt.o +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)) #########################################################################