summaryrefslogtreecommitdiff
path: root/common/build.mk
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-01-26 01:05:45 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-01-26 01:55:37 +0000
commit1f00fc154af5e367c2347e4c951fe08719c7e269 (patch)
treecc417b1ae9abc78e8c69aec6561e06e9fa1cbd79 /common/build.mk
parent1008124533d54497793a2059475391fd5b7efa9d (diff)
downloadchrome-ec-1f00fc154af5e367c2347e4c951fe08719c7e269.tar.gz
Make more features optional
Preparatory work to introduce a second SoC : 2nd series 3/4 Some modules won't be used on other designs, make them optional. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=run the EC firmware on BDS and check that the commands from the optional features are still available and working. Change-Id: I979864ed94dc4da90c1010bd2e4589d84bc2d046
Diffstat (limited to 'common/build.mk')
-rw-r--r--common/build.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/build.mk b/common/build.mk
index 1024a8a0ad..3a649909c5 100644
--- a/common/build.mk
+++ b/common/build.mk
@@ -5,9 +5,12 @@
# Common files build
#
-common-y=main.o util.o console.o vboot.o pwm_commands.o
-common-y+=flash_commands.o port80.o
-common-y+=memory_commands.o shared_mem.o temp_sensor_commands.o usb_charge.o
+common-y=main.o util.o console.o vboot.o
+common-y+=memory_commands.o shared_mem.o usb_charge.o
+common-$(CONFIG_LPC)+=port80.o
common-$(CONFIG_TASK_HOSTCMD)+=host_command.o
common-$(CONFIG_TASK_I8042CMD)+=i8042.o keyboard.o
common-$(CONFIG_TASK_X86POWER)+=x86_power.o
+common-$(CONFIG_FLASH)+=flash_commands.o
+common-$(CONFIG_PWM)+=pwm_commands.o
+common-$(CONFIG_TEMP_SENSOR)+=temp_sensor_commands.o