From be294d4efbae12c006320b09ca699de660ea6278 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Mon, 17 Apr 2017 08:02:38 +0800 Subject: hammer: Only define required options for RO and RW RO does not need touchpad/keyboard driver or I2C passthru, RW does not need RW verification, let's shrink both images by only including required config options. BRANCH=none BUG=b:35582031 TEST=Build and flash hammer: still functional. build/hammer/RO/ec.RO.flat shrank by 10144 bytes: (45868 to 35724) build/hammer/RW/ec.RW.flat shrank by 2764 bytes: (45332 to 42568) Change-Id: Iff0feb4e8446cc9f2e32103cd383fddae3234fec Reviewed-on: https://chromium-review.googlesource.com/479492 Commit-Ready: Nicolas Boichat Tested-by: Nicolas Boichat Reviewed-by: Randall Spangler --- board/hammer/board.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/hammer/board.c') diff --git a/board/hammer/board.c b/board/hammer/board.c index 01f077d91e..c51dfdba81 100644 --- a/board/hammer/board.c +++ b/board/hammer/board.c @@ -45,6 +45,7 @@ BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT); * usb_i2c_board_disable to be defined to enable and disable the I2C bridge. */ +#ifdef SECTION_IS_RW /* I2C ports */ const struct i2c_port_t i2c_ports[] = { {"master", I2C_PORT_MASTER, 400, @@ -60,6 +61,7 @@ BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); int usb_i2c_board_enable(void) { return EC_SUCCESS; } void usb_i2c_board_disable(void) {} +#endif /****************************************************************************** * Initialize board. -- cgit v1.2.1