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 /chip/stm32 | |
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 'chip/stm32')
-rw-r--r-- | chip/stm32/build.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chip/stm32/build.mk b/chip/stm32/build.mk index 2b0477518c..a4ce0f4bda 100644 --- a/chip/stm32/build.mk +++ b/chip/stm32/build.mk @@ -25,11 +25,14 @@ I2C_FAMILY=$(subst stm32f0,stm32l,$(CHIP_FAMILY)) # Select between 16-bit and 32-bit timer for clock source TIMER_TYPE=$(if $(CONFIG_STM_HWTIMER32),32,) -chip-y=dma.o hwtimer$(TIMER_TYPE).o system.o uart.o -chip-y+=jtag-$(CHIP_FAMILY).o clock-$(CHIP_FAMILY).o gpio-$(CHIP_FAMILY).o +chip-y=dma.o system.o +chip-y+=jtag-$(CHIP_FAMILY).o clock-$(CHIP_FAMILY).o chip-$(CONFIG_SPI)+=spi.o +chip-$(CONFIG_COMMON_GPIO)+=gpio-$(CHIP_FAMILY).o +chip-$(CONFIG_COMMON_TIMER)+=hwtimer$(TIMER_TYPE).o chip-$(CONFIG_I2C)+=i2c-$(I2C_FAMILY).o chip-$(CONFIG_WATCHDOG)+=watchdog.o +chip-$(HAS_TASK_CONSOLE)+=uart.o chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o chip-$(HAS_TASK_POWERLED)+=power_led.o chip-$(CONFIG_FLASH)+=flash-$(FLASH_FAMILY).o |