diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-03-07 19:06:54 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-22 06:24:16 +0000 |
commit | 60e47a730f9a0c0eb20ccd067954009c192418c9 (patch) | |
tree | 7c78a02d75a18f1715f09624bc7c415aee92ef7d /common | |
parent | 727b4e4e0d54e46e196d2d129ab432f537d2c301 (diff) | |
download | chrome-ec-60e47a730f9a0c0eb20ccd067954009c192418c9.tar.gz |
make the common runtime optional
In order to achieve really tiny firmwares, make our runtime (tasks,
hooks, muxed timers, GPIO abstraction ...) optional.
Add 2 new build options for it : CONFIG_COMMON_RUNTIME and
CONFIG_COMMON_GPIO which are enabled by default, and ensure all the
source files are built according to the right configuration variable.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=make buildall
build a minimal board with no runtime.
Change-Id: Icb621cbe0a75b3a320cb53c3267d6e578cd3c32f
Reviewed-on: https://chromium-review.googlesource.com/189403
Reviewed-by: Vic Yang <victoryang@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/build.mk | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common/build.mk b/common/build.mk index e2697c8c1c..cab075503a 100644 --- a/common/build.mk +++ b/common/build.mk @@ -6,9 +6,8 @@ # Common files build # -common-y=main.o util.o console_output.o uart_buffering.o -common-y+=memory_commands.o shared_mem.o system.o hooks.o -common-y+=gpio.o version.o printf.o queue.o +common-y=util.o +common-y+=version.o printf.o queue.o common-$(CONFIG_ACCEL_CALIBRATE)+=motion_calibrate.o common-$(CONFIG_ADC)+=adc.o @@ -30,7 +29,9 @@ common-$(CONFIG_CHARGER_V2)+=charge_state_v2.o # for ARM, not the charger driver for the tps65090. Rename. common-$(CONFIG_CHARGER_TPS65090)+=pmu_tps65090_charger.o common-$(CONFIG_CMD_I2CWEDGE)+=i2c_wedge.o +common-$(CONFIG_COMMON_GPIO)+=gpio.o common-$(CONFIG_COMMON_PANIC_OUTPUT)+=panic_output.o +common-$(CONFIG_COMMON_RUNTIME)+=hooks.o main.o system.o shared_mem.o common-$(CONFIG_COMMON_TIMER)+=timer.o common-$(CONFIG_PMU_POWERINFO)+=pmu_tps65090_powerinfo.o common-$(CONFIG_PMU_TPS65090)+=pmu_tps65090.o @@ -64,7 +65,8 @@ common-$(CONFIG_USB_PORT_POWER_SMART)+=usb_port_power_smart.o common-$(CONFIG_VBOOT_HASH)+=sha256.o vboot_hash.o common-$(CONFIG_WIRELESS)+=wireless.o common-$(HAS_TASK_CHIPSET)+=chipset.o throttle_ap.o -common-$(HAS_TASK_CONSOLE)+=console.o +common-$(HAS_TASK_CONSOLE)+=console.o console_output.o uart_buffering.o +common-$(HAS_TASK_CONSOLE)+=memory_commands.o common-$(HAS_TASK_HOSTCMD)+=acpi.o host_command.o host_event_commands.o common-$(HAS_TASK_KEYSCAN)+=keyboard_scan.o common-$(HAS_TASK_LIGHTBAR)+=lightbar.o |