summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 09:25:23 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-22 13:33:58 (GMT)
commitd91a9d7fb3910dcbb913bfe183c5268f0e5f928b (patch)
tree8fbf7e5efa1db940bb23b901e1840d649e38e612
parent51f29370366a40fc54eec579c7567bc1356da6e4 (diff)
downloadu-boot-fsl-qoriq-d91a9d7fb3910dcbb913bfe183c5268f0e5f928b.tar.xz
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>
-rw-r--r--README1
-rw-r--r--arch/Kconfig1
-rw-r--r--cmd/Kconfig8
-rw-r--r--include/config_cmd_all.h1
-rw-r--r--include/configs/x86-common.h1
-rw-r--r--scripts/config_whitelist.txt1
6 files changed, 9 insertions, 4 deletions
diff --git a/README b/README
index 3cc82a6..d5cd57e 100644
--- 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
diff --git a/arch/Kconfig b/arch/Kconfig
index 77e1a3e..0682375 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -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"
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 495080f..7243f78 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -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"
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index 7e9983e..2c633e6 100644
--- a/include/config_cmd_all.h
+++ b/include/config_cmd_all.h
@@ -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 */
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index 8284076..e9d5f3d 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -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
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 9180081..129d9a4 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -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