X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fqe%2FMakefile;h=18fe9ce614a64fcf5f69025f5e191a46b2255ac4;hb=ad09ab2e3ac28f304372eceb4a5cb4d24e102a13;hp=4844181b8e9a1589bada5708488dd81ce2e5b2a2;hpb=f2b07ebd32e42a5b1126c98efc768ddb8908de62;p=u-boot diff --git a/drivers/qe/Makefile b/drivers/qe/Makefile index 4844181b8e..18fe9ce614 100644 --- a/drivers/qe/Makefile +++ b/drivers/qe/Makefile @@ -22,12 +22,14 @@ include $(TOPDIR)/config.mk -LIB := $(obj)qe.a +LIB := $(obj)qe.a -COBJS := qe.o uccf.o uec.o uec_phy.o +COBJS-$(CONFIG_OF_LIBFDT) += fdt.o +COBJS-$(CONFIG_QE) += qe.o uccf.o uec.o uec_phy.o -SRCS := $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS)) +COBJS := $(COBJS-y) +SRCS := $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) all: $(LIB)