Commit d91a9d7fb3910dcbb913bfe183c5268f0e5f928b

Authored by Simon Glass
Committed by Tom Rini
1 parent 51f2937036

Convert CONFIG_CMD_GETTIME to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_GETTIME

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>

Showing 6 changed files with 9 additions and 4 deletions Side-by-side Diff

... ... @@ -844,7 +844,6 @@
844 844 CONFIG_CMD_FAT * FAT command support
845 845 CONFIG_CMD_FLASH flinfo, erase, protect
846 846 CONFIG_CMD_FPGA FPGA device initialization support
847   - CONFIG_CMD_GETTIME * Get time since boot
848 847 CONFIG_CMD_GO * the 'go' command (exec code)
849 848 CONFIG_CMD_GREPENV * search environment
850 849 CONFIG_CMD_HASH * calculate hash / digest
... ... @@ -87,6 +87,7 @@
87 87 select USB_EHCI_HCD
88 88 select DM_MMC if MMC
89 89 imply CMD_FPGA_LOADMK
  90 + imply CMD_GETTIME
90 91  
91 92 config XTENSA
92 93 bool "Xtensa architecture"
... ... @@ -846,6 +846,14 @@
846 846 help
847 847 Run commands and summarize execution time.
848 848  
  849 +config CMD_GETTIME
  850 + bool "gettime - read elapsed time"
  851 + help
  852 + Enable the 'gettime' command which reads the elapsed time since
  853 + U-Boot started running. This shows the time in seconds and
  854 + milliseconds. See also the 'bootstage' command which provides more
  855 + flexibility for boot timing.
  856 +
849 857 # TODO: rename to CMD_SLEEP
850 858 config CMD_MISC
851 859 bool "sleep"
include/config_cmd_all.h
... ... @@ -13,7 +13,6 @@
13 13 * Alphabetical list of all possible commands.
14 14 */
15 15  
16   -#define CONFIG_CMD_GETTIME /* Get time since boot */
17 16 #define CONFIG_CMD_HASH /* calculate hash / digest */
18 17 #define CONFIG_CMD_IDE /* IDE harddisk support */
19 18 #define CONFIG_CMD_IMMAP /* IMMR dump support */
include/configs/x86-common.h
... ... @@ -73,7 +73,6 @@
73 73 #define CONFIG_CMD_IO
74 74 #define CONFIG_CMD_IRQ
75 75 #define CONFIG_CMD_PCI
76   -#define CONFIG_CMD_GETTIME
77 76 #define CONFIG_SCSI
78 77  
79 78 #define CONFIG_CMD_ZBOOT
scripts/config_whitelist.txt
... ... @@ -383,7 +383,6 @@
383 383 CONFIG_CMDLINE_EDITING
384 384 CONFIG_CMDLINE_PS_SUPPORT
385 385 CONFIG_CMDLINE_TAG
386   -CONFIG_CMD_GETTIME
387 386 CONFIG_CMD_GSC
388 387 CONFIG_CMD_HASH
389 388 CONFIG_CMD_HD44760