diff mbox

[19/31] Only compile max7310 when one target uses it

Message ID d67b1da6a2d40fa9e23317b1b8236bd10d78cd97.1254875337.git.quintela@redhat.com
State Accepted
Commit ae573db3cfeffeb61801e2a0d235b6ba52586a54
Headers show

Commit Message

Juan Quintela Oct. 7, 2009, 12:41 a.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile                        |    3 ++-
 default-configs/arm-softmmu.mak |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index ae1aed5..a92b30e 100644
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,8 @@  obj-y += readline.o console.o
 obj-y += tcg-runtime.o host-utils.o
 obj-y += irq.o ioport.o
 obj-$(CONFIG_PTIMER) += ptimer.o
-obj-y += i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o
+obj-$(CONFIG_MAX7310) += max7310.o
+obj-y += i2c.o smbus.o smbus_eeprom.o max111x.o wm8750.o
 obj-y += ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o
 obj-y += tmp105.o lm832x.o eeprom93xx.o tsc2005.o
 obj-y += scsi-disk.o cdrom.o
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
index 52b2dfa..88232c7 100644
--- a/default-configs/arm-softmmu.mak
+++ b/default-configs/arm-softmmu.mak
@@ -7,3 +7,4 @@  CONFIG_NAND=y
 CONFIG_ECC=y
 CONFIG_PTIMER=y
 CONFIG_SD=y
+CONFIG_MAX7310=y