Patchwork [28/30] Only compile max111x when one target uses it

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

Comments

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

Patch

diff --git a/Makefile b/Makefile
index e16282b..89e217f 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,8 @@  obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
 obj-$(CONFIG_SSD0303) += ssd0303.o
 obj-$(CONFIG_SSD0323) += ssd0323.o
 obj-$(CONFIG_ADS7846) += ads7846.o
-obj-y += i2c.o smbus.o smbus_eeprom.o max111x.o
+obj-$(CONFIG_MAX111X) += max111x.o
+obj-y += i2c.o smbus.o smbus_eeprom.o
 obj-y += eeprom93xx.o
 obj-y += scsi-disk.o cdrom.o
 obj-y += scsi-generic.o
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
index f68273d..486409d 100644
--- a/default-configs/arm-softmmu.mak
+++ b/default-configs/arm-softmmu.mak
@@ -17,3 +17,4 @@  CONFIG_STELLARIS_INPUT=y
 CONFIG_SD0303=y
 CONFIG_SD0323=y
 CONFIG_ADS7846=y
+CONFIG_MAX111X=y