OSDN Git Service

Only compile nand when one target uses it
authorJuan Quintela <quintela@redhat.com>
Wed, 7 Oct 2009 00:41:08 +0000 (02:41 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 9 Oct 2009 02:17:11 +0000 (21:17 -0500)
Patchworks-ID: 35202
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile.hw
default-configs/arm-softmmu.mak
default-configs/cris-softmmu.mak

index ba2d390..88b59b2 100644 (file)
@@ -16,7 +16,8 @@ obj-y += loader.o
 obj-y += virtio.o
 obj-y += fw_cfg.o
 obj-y += watchdog.o
-obj-y += nand.o ecc.o
+obj-y += ecc.o
+obj-$(CONFIG_NAND) += nand.o
 
 obj-y += m48t59.o escc.o
 
index 66834c2..c15ac7f 100644 (file)
@@ -3,3 +3,4 @@
 CONFIG_GDBSTUB_XML=y
 CONFIG_USB_OHCI=y
 CONFIG_ISA_MMIO=y
+CONFIG_NAND=y
index 3726699..c429979 100644 (file)
@@ -1 +1,3 @@
 # Default configuration for cris-softmmu
+
+CONFIG_NAND=y