summaryrefslogtreecommitdiffstats
path: root/drivers/qe/Makefile
diff options
context:
space:
mode:
authorSebastien Carlier <sebastien.carlier@gmail.com>2010-11-18 12:06:46 +0100
committerWolfgang Denk <wd@denx.de>2010-11-18 15:22:10 +0100
commitc05b18fd7768cb95cf8a1307b957992ff0aac058 (patch)
treee8fccbee952a4de613f33cca6bb3bfd505bb30a0 /drivers/qe/Makefile
parent635d1b3e1b885267de90d100402ba7748fdd9bc5 (diff)
downloadtalos-obmc-uboot-c05b18fd7768cb95cf8a1307b957992ff0aac058.tar.gz
talos-obmc-uboot-c05b18fd7768cb95cf8a1307b957992ff0aac058.zip
Exclude drivers/qe/fdt.c without CONFIG_QE
Previously with archive libraries fdt.o was compiled and included in qe.a and then discarded by the linker. With partial linking this results in unresolved symbols, which this commit fixes. This commit also cleans up a now-useless conditional in fdt.c. Signed-off-by: Sebastien Carlier <sebastien.carlier@gmail.com> Tested-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/qe/Makefile')
-rw-r--r--drivers/qe/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/qe/Makefile b/drivers/qe/Makefile
index 8e9a035e92..ef4bdf8b24 100644
--- a/drivers/qe/Makefile
+++ b/drivers/qe/Makefile
@@ -24,7 +24,7 @@ include $(TOPDIR)/config.mk
LIB := $(obj)libqe.o
-COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
+COBJS-$(and $(CONFIG_QE),$(CONFIG_OF_LIBFDT)) += fdt.o
COBJS-$(CONFIG_QE) += qe.o uccf.o uec.o uec_phy.o
COBJS := $(COBJS-y)
OpenPOWER on IntegriCloud