summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilipchen <philipchen@google.com>2016-10-26 15:39:25 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-27 19:28:43 -0700
commitb6937caeeb3f4642cfdc0bca52a890b30b81e9a4 (patch)
treecaa51269a2373050224b57a2ea0437cafc7b2fe7
parent52d80971c79f0775840e1116aee2f96b6f8778ca (diff)
downloadchrome-ec-b6937caeeb3f4642cfdc0bca52a890b30b81e9a4.tar.gz
gru/kevin: turn on flags to save code size
Turn on CONFIG_HOSTCMD_ALIGNED and CONFIG_COMMON_GPIO_SHORTNAMES to squeeze more space for the upcoming sensor code. BUG=chrome-os-partner:59084 BRANCH=gru, kevin TEST=Check the map to confirm the size reduction Change-Id: I7a9ca8fccf6d57a797c391dc76cacb0b929e14df Reviewed-on: https://chromium-review.googlesource.com/403485 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/kevin/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/kevin/board.h b/board/kevin/board.h
index 15d97dbc97..05fc660f81 100644
--- a/board/kevin/board.h
+++ b/board/kevin/board.h
@@ -163,6 +163,14 @@
#undef CONFIG_PECI
#undef CONFIG_PSTORE
+/* Reduce code size */
+#ifdef BOARD_GRU
+#define CONFIG_COMMON_GPIO_SHORTNAMES
+#define GPIO_NAME_BY_PIN(port, index) #port#index
+#endif
+
+#define CONFIG_HOSTCMD_ALIGNED
+
/* Modules we want to exclude */
#undef CONFIG_CMD_ACCEL_INFO
#undef CONFIG_CMD_FLASH