Patchwork [12/30] Only compile ecc when one target uses it

login
register
mail settings
Submitter Juan Quintela
Date Aug. 27, 2009, 7:17 p.m.
Message ID <b3acab003b1594107eb19a21f7b92046eefd21b6.1251399960.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/32289/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 27, 2009, 7:17 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.hw                       |    2 +-
 default-configs/arm-softmmu.mak   |    1 +
 default-configs/sparc-softmmu.mak |    1 +
 3 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile.hw b/Makefile.hw
index cd035b3..402c26d 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -15,7 +15,7 @@  obj-y =
 obj-y += virtio.o
 obj-y += fw_cfg.o
 obj-y += watchdog.o
-obj-y += ecc.o
+obj-$(CONFIG_ECC) += ecc.o
 obj-$(CONFIG_NAND) += nand.o

 obj-y += m48t59.o escc.o
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
index c15ac7f..9ac6f31 100644
--- a/default-configs/arm-softmmu.mak
+++ b/default-configs/arm-softmmu.mak
@@ -4,3 +4,4 @@  CONFIG_GDBSTUB_XML=y
 CONFIG_USB_OHCI=y
 CONFIG_ISA_MMIO=y
 CONFIG_NAND=y
+CONFIG_ECC=y
diff --git a/default-configs/sparc-softmmu.mak b/default-configs/sparc-softmmu.mak
index dc51839..25abbd9 100644
--- a/default-configs/sparc-softmmu.mak
+++ b/default-configs/sparc-softmmu.mak
@@ -1,3 +1,4 @@ 
 # Default configuration for sparc-softmmu

 CONFIG_QDEV_ADDR=y
+CONFIG_ECC=y