summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-02-21 16:54:08 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-24 00:27:42 +0000
commitfc144e940ca89a020880645a823d5c2258aae8c4 (patch)
tree3de66840bfe89073161535e2b48ee7a2bbaa91da /common
parent72c49fc0e73970192fa05ce6597b747b68d4ce64 (diff)
downloadchrome-ec-fc144e940ca89a020880645a823d5c2258aae8c4.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=none BRANCH=samus_pd TEST=make-j buildall Change-Id: I0d0277a0c4a80dffd90dcbf2c3ee77eba2408c57 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/251911 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/shared_mem.c2
1 files changed, 2 insertions, 0 deletions
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