diff mbox

[13/30] Only compile esp when one target uses it

Message ID 76dd646fbf18823e688b43fbd4ca74d40b99e4de.1251485646.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 28, 2009, 6:56 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.hw                          |    3 ++-
 default-configs/mips-softmmu.mak     |    1 +
 default-configs/mips64-softmmu.mak   |    1 +
 default-configs/mips64el-softmmu.mak |    1 +
 default-configs/mipsel-softmmu.mak   |    1 +
 default-configs/sparc64-softmmu.mak  |    1 +
 6 files changed, 7 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/Makefile.hw b/Makefile.hw
index 402c26d..af0704f 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -21,7 +21,8 @@  obj-$(CONFIG_NAND) += nand.o
 obj-y += m48t59.o escc.o

 # SCSI layer
-obj-y += lsi53c895a.o esp.o
+obj-y += lsi53c895a.o
+obj-$(CONFIG_ESP) += esp.o

 obj-y += dma-helpers.o sysbus.o
 obj-$(CONFIG_QDEV_ADDR) += qdev-addr.o
diff --git a/default-configs/mips-softmmu.mak b/default-configs/mips-softmmu.mak
index 0b5bb0d..b452b9a 100644
--- a/default-configs/mips-softmmu.mak
+++ b/default-configs/mips-softmmu.mak
@@ -1,3 +1,4 @@ 
 # Default configuration for mips-softmmu

 CONFIG_ISA_MMIO=y
+CONFIG_ESP=y
diff --git a/default-configs/mips64-softmmu.mak b/default-configs/mips64-softmmu.mak
index de64165..2896675 100644
--- a/default-configs/mips64-softmmu.mak
+++ b/default-configs/mips64-softmmu.mak
@@ -1,3 +1,4 @@ 
 # Default configuration for mips64-softmmu

 CONFIG_ISA_MMIO=y
+CONFIG_ESP=y
diff --git a/default-configs/mips64el-softmmu.mak b/default-configs/mips64el-softmmu.mak
index eb1bdc3..7fbd9a3 100644
--- a/default-configs/mips64el-softmmu.mak
+++ b/default-configs/mips64el-softmmu.mak
@@ -1,3 +1,4 @@ 
 # Default configuration for mips64el-softmmu

 CONFIG_ISA_MMIO=y
+CONFIG_ESP=y
diff --git a/default-configs/mipsel-softmmu.mak b/default-configs/mipsel-softmmu.mak
index 6ace424..9e02e93 100644
--- a/default-configs/mipsel-softmmu.mak
+++ b/default-configs/mipsel-softmmu.mak
@@ -1,3 +1,4 @@ 
 # Default configuration for mipsel-softmmu

 CONFIG_ISA_MMIO=y
+CONFIG_ESP=y
diff --git a/default-configs/sparc64-softmmu.mak b/default-configs/sparc64-softmmu.mak
index aaccf0b..251f723 100644
--- a/default-configs/sparc64-softmmu.mak
+++ b/default-configs/sparc64-softmmu.mak
@@ -1,3 +1,4 @@ 
 # Default configuration for sparc64-softmmu

 CONFIG_ISA_MMIO=y
+CONFIG_ESP=y