summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2016-09-29 23:48:45 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-02 15:19:21 -0700
commitfd88db3e9a9b922fd73ebb4a446f0289bd7ab8f5 (patch)
tree355b43f6038165ee0a7590b1105972aefe7a5a47 /chip/mec1322
parent0a4bb34bcdde39f1cd21dd555d7284a8b1ce9cca (diff)
downloadchrome-ec-fd88db3e9a9b922fd73ebb4a446f0289bd7ab8f5.tar.gz
g: CONFIG_FLASH should be optional
The application may need to read/write/erase the flash memory, but we not want console users to do so. This CL adds CONFIG_FLASH_PHYSICAL, which allows the higher-level CONFIG_FLASH to be undefined while still providing the chip-specific flash_physical_* accessor functions. There aren't many board.h files that needed changes, since CONFIG_FLASH_PHYSICAL is enabled by default, just like CONFIG_FLASH. BUG=chrome-os-partner:57408 BRANCH=none TEST=make buildall; try on Gru with and without CR50_DEV=1 See that it still boots, updates, wipes, restores, etc. without linking common/flash.o in the production image; and that the flash commands are still there in the dev build. Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: I7eb1bbcb414b1c70ee427c4fcb5cea899dbb9e93 Reviewed-on: https://chromium-review.googlesource.com/391188 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/mec1322')
-rw-r--r--chip/mec1322/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mec1322/build.mk b/chip/mec1322/build.mk
index f2c5cf80a0..615697be0b 100644
--- a/chip/mec1322/build.mk
+++ b/chip/mec1322/build.mk
@@ -20,7 +20,7 @@ endif
chip-y=clock.o gpio.o hwtimer.o system.o uart.o jtag.o port80.o
chip-$(CONFIG_ADC)+=adc.o
chip-$(CONFIG_FANS)+=fan.o
-chip-$(CONFIG_FLASH)+=flash.o
+chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o
chip-$(CONFIG_I2C)+=i2c.o
chip-$(CONFIG_LPC)+=lpc.o
chip-$(CONFIG_PWM)+=pwm.o