From 5943f49e17f4164188f0d0947b024e8b4271c00d Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Fri, 28 Aug 2015 13:42:58 -0700 Subject: Keyboard: Add a macro to conditionally compile the console commands Added macros to conditionally compile the keyboard test console commands to save the memory. These macros can be enabled/disabled in the board specific files. BUG=none TEST=make buildall -j BRANCH=none Change-Id: I3ad190f1f3c9310e4f706b3b23cb8ca8755e49ef Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/295942 Commit-Ready: Vijay P Hiremath Commit-Ready: Divya Jyothi Tested-by: Vijay P Hiremath Tested-by: Divya Jyothi Reviewed-by: Vijay P Hiremath Reviewed-by: Shawn N --- common/keyboard_8042.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/keyboard_8042.c') diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c index 96321e28f3..b4b39008c3 100644 --- a/common/keyboard_8042.c +++ b/common/keyboard_8042.c @@ -962,7 +962,7 @@ test_mockable void keyboard_update_button(enum keyboard_button_type button, /*****************************************************************************/ /* Console commands */ - +#ifdef CONFIG_CMD_KEYBOARD static int command_typematic(int argc, char **argv) { int i; @@ -1189,6 +1189,7 @@ DECLARE_CONSOLE_COMMAND(8042, command_8042, " kblog | kbd]", "Print 8042 state in one place", NULL); +#endif /*****************************************************************************/ -- cgit v1.2.1