diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-02-21 16:54:08 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2017-02-14 00:29:03 +0000 |
commit | 905ecd391430a6ce58522370a1ceec73a1f688ae (patch) | |
tree | 9bbc70f07da9cfd9d066d9e2cf1c8254cd97a954 | |
parent | a9c0a62382401690e2514946f507251462d71a09 (diff) | |
download | chrome-ec-905ecd391430a6ce58522370a1ceec73a1f688ae.tar.gz |
samus_pd: make shmem command optional, disable on samus_pd
To save flash space, disable "shmem" console command on samus_pd
to save 128 bytes.
BUG=chrome-os-partner:60882
BRANCH=samus_pd,veyron
TEST=make-j buildall
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/251911
Reviewed-by: Shawn N <shawnn@chromium.org>
(cherry picked from commit fc144e940ca89a020880645a823d5c2258aae8c4)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Conflicts:
board/samus_pd/board.h
Change-Id: I0d0277a0c4a80dffd90dcbf2c3ee77eba2408c57
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/440381
Reviewed-by: Alexandru Stan <amstan@chromium.org>
-rw-r--r-- | board/samus_pd/board.h | 1 | ||||
-rw-r--r-- | common/shared_mem.c | 2 | ||||
-rw-r--r-- | include/config.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/board/samus_pd/board.h b/board/samus_pd/board.h index 29f3981113..7afe6e1125 100644 --- a/board/samus_pd/board.h +++ b/board/samus_pd/board.h @@ -25,6 +25,7 @@ #define CONFIG_CHARGER_INPUT_CURRENT PWM_0_MA #undef CONFIG_CMD_IDLE_STATS #undef CONFIG_CMD_TIMERINFO +#undef CONFIG_CMD_SHMEM #undef CONFIG_CONSOLE_CMDHELP #define CONFIG_FORCE_CONSOLE_RESUME #define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP3|STM32_PWR_CSR_EWUP8) diff --git a/common/shared_mem.c b/common/shared_mem.c index 219019ef62..4060b68a58 100644 --- a/common/shared_mem.c +++ b/common/shared_mem.c @@ -52,6 +52,7 @@ void shared_mem_release(void *ptr) buf_in_use = 0; } +#ifdef CONFIG_CMD_SHMEM static int command_shmem(int argc, char **argv) { ccprintf("Size:%6d\n", shared_mem_size()); @@ -63,3 +64,4 @@ DECLARE_CONSOLE_COMMAND(shmem, command_shmem, NULL, "Print shared memory stats", NULL); +#endif diff --git a/include/config.h b/include/config.h index 95a9f1d7f7..abda688439 100644 --- a/include/config.h +++ b/include/config.h @@ -376,6 +376,7 @@ #undef CONFIG_CMD_POWERLED #undef CONFIG_CMD_RTC_ALARM #undef CONFIG_CMD_SCRATCHPAD +#define CONFIG_CMD_SHMEM #undef CONFIG_CMD_SLEEP #undef CONFIG_CMD_SPI_FLASH #undef CONFIG_CMD_STACKOVERFLOW |