Patchwork [28/31] Only compile ads7846 when one target uses it

login
register
mail settings
Submitter Juan Quintela
Date Oct. 7, 2009, 12:41 a.m.
Message ID <a4528525450a652e7c0f71227a60fdb7eb0584d2.1254875337.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/35218/
State Accepted
Commit 20a4afc4216fc6031105d9735510dbe7a4979069
Headers show

Comments

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

Patch

diff --git a/Makefile b/Makefile
index 03d8c1b..35949a0 100644
--- a/Makefile
+++ b/Makefile
@@ -107,8 +107,8 @@  obj-$(CONFIG_TMP105) += tmp105.o
 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-y += ads7846.o
 obj-y += eeprom93xx.o
 obj-y += scsi-disk.o cdrom.o
 obj-y += scsi-generic.o scsi-bus.o
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
index 1d069b1..f68273d 100644
--- a/default-configs/arm-softmmu.mak
+++ b/default-configs/arm-softmmu.mak
@@ -16,3 +16,4 @@  CONFIG_TMP105=y
 CONFIG_STELLARIS_INPUT=y
 CONFIG_SD0303=y
 CONFIG_SD0323=y
+CONFIG_ADS7846=y