From db24bed78d6274def74f0a764a29a9ea1e2feb71 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 23 May 2018 14:19:19 +0800 Subject: timer: Allow disabling gettime console command hammer does not need that command, let's just remove it. BRANCH=poppy BUG=b:35647963 TEST=make newsizes, saves 112 bytes of flash Change-Id: I24ed979f8a9053128d4eb56fc5af00429f7ba0ae Signed-off-by: Nicolas Boichat Reviewed-on: https://chromium-review.googlesource.com/1070950 Reviewed-by: Randall Spangler --- common/timer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common') diff --git a/common/timer.c b/common/timer.c index d88a34164e..117cea4b71 100644 --- a/common/timer.c +++ b/common/timer.c @@ -319,6 +319,7 @@ DECLARE_CONSOLE_COMMAND(forcetime, command_force_time, "Force current time"); #endif +#ifdef CONFIG_CMD_GETTIME static int command_get_time(int argc, char **argv) { timestamp_t ts = get_time(); @@ -329,6 +330,7 @@ static int command_get_time(int argc, char **argv) DECLARE_SAFE_CONSOLE_COMMAND(gettime, command_get_time, NULL, "Print current time"); +#endif #ifdef CONFIG_CMD_TIMERINFO int command_timer_info(int argc, char **argv) -- cgit v1.2.1