]> git.sur5r.net Git - u-boot/commitdiff
Convert CONFIG_CMD_GETTIME to Kconfig
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 09:25:23 +0000 (03:25 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 22 May 2017 13:33:58 +0000 (09:33 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_GETTIME

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
README
arch/Kconfig
cmd/Kconfig
include/config_cmd_all.h
include/configs/x86-common.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 3cc82a69669fbdf5158c64f09ccd1553ee0b6829..d5cd57eaf9e1398b7e2344eb3ed13199a6ccc67b 100644 (file)
--- a/README
+++ b/README
@@ -844,7 +844,6 @@ The following options need to be configured:
                CONFIG_CMD_FAT          * FAT command support
                CONFIG_CMD_FLASH          flinfo, erase, protect
                CONFIG_CMD_FPGA           FPGA device initialization support
-               CONFIG_CMD_GETTIME      * Get time since boot
                CONFIG_CMD_GO           * the 'go' command (exec code)
                CONFIG_CMD_GREPENV      * search environment
                CONFIG_CMD_HASH         * calculate hash / digest
index 77e1a3ec7ebb56be8a6973e1360f850e994e5918..06823758e24cbdba572af18ee3ec15135eb842af 100644 (file)
@@ -87,6 +87,7 @@ config X86
        select USB_EHCI_HCD
        select DM_MMC if MMC
        imply CMD_FPGA_LOADMK
+       imply CMD_GETTIME
 
 config XTENSA
        bool "Xtensa architecture"
index 495080fc01e08c1b3820439fdfb581d4aa46f26e..7243f78d1e73b2aa4ccd112c6a1e4dafc84ebff6 100644 (file)
@@ -846,6 +846,14 @@ config CMD_TIME
        help
          Run commands and summarize execution time.
 
+config CMD_GETTIME
+       bool "gettime - read elapsed time"
+       help
+         Enable the 'gettime' command which reads the elapsed time since
+         U-Boot started running. This shows the time in seconds and
+         milliseconds. See also the 'bootstage' command which provides more
+         flexibility for boot timing.
+
 # TODO: rename to CMD_SLEEP
 config CMD_MISC
        bool "sleep"
index 7e9983e150aadec5fbad344ff0fe1c251908517c..2c633e672783bfb43fcfe202141953f3b39b541f 100644 (file)
@@ -13,7 +13,6 @@
  * Alphabetical list of all possible commands.
  */
 
-#define CONFIG_CMD_GETTIME     /* Get time since boot         */
 #define CONFIG_CMD_HASH                /* calculate hash / digest      */
 #define CONFIG_CMD_IDE         /* IDE harddisk support         */
 #define CONFIG_CMD_IMMAP       /* IMMR dump support            */
index 8284076b089a60b3189944270794fdb599875212..e9d5f3d05385849ca5b98cea2e8cd71904d781fb 100644 (file)
@@ -73,7 +73,6 @@
 #define CONFIG_CMD_IO
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_PCI
-#define CONFIG_CMD_GETTIME
 #define CONFIG_SCSI
 
 #define CONFIG_CMD_ZBOOT
index 91800816dd1c6dde421de5359fa7f0a70d3a1a2a..129d9a4042bb92c71d17ac6c4253a3f404a62359 100644 (file)
@@ -383,7 +383,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_GETTIME
 CONFIG_CMD_GSC
 CONFIG_CMD_HASH
 CONFIG_CMD_HD44760