All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 27/48] Convert CONFIG_CMD_GETTIME to Kconfig
Date: Wed, 17 May 2017 03:25:23 -0600	[thread overview]
Message-ID: <20170517092544.19357-28-sjg@chromium.org> (raw)
In-Reply-To: <20170517092544.19357-1-sjg@chromium.org>

This converts the following to Kconfig:
   CONFIG_CMD_GETTIME

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

Changes in v3: None
Changes in v2:
- Imply CMD_TIME on x86 to remove defconfig changes

 README                       | 1 -
 arch/Kconfig                 | 1 +
 cmd/Kconfig                  | 8 ++++++++
 include/config_cmd_all.h     | 1 -
 include/configs/x86-common.h | 1 -
 scripts/config_whitelist.txt | 1 -
 6 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/README b/README
index ba9691a895..efb1512e17 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 ce47078d6a..4f8409ca1b 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -86,6 +86,7 @@ config X86
 	select DM_SPI_FLASH
 	select USB_EHCI_HCD
 	imply CMD_FPGA_LOADMK
+	imply CMD_GETTIME
 
 config XTENSA
 	bool "Xtensa architecture"
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 495080fc01..7243f78d1e 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 7e9983e150..2c633e6727 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 8284076b08..e9d5f3d053 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 ba8ac3ebcc..718a8ede2a 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
-- 
2.13.0.303.g4ebf302169-goog

  parent reply	other threads:[~2017-05-17  9:25 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17  9:24 [U-Boot] [PATCH v3 00/48] Kconfig: Convert commands (D to L) to Kconfig Simon Glass
2017-05-17  9:24 ` [U-Boot] [PATCH v3 01/48] configs: Re-sync Simon Glass
2017-05-17  9:24 ` [U-Boot] [PATCH v3 02/48] Kconfig: Drop CONFIG_CMD_DS4510_INFO Simon Glass
2017-05-22 17:58   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:24 ` [U-Boot] [PATCH v3 03/48] Kconfig: Drop CONFIG_CMD_DS4510_MEM Simon Glass
2017-05-22 17:58   ` [U-Boot] [U-Boot,v3,03/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 04/48] Kconfig: Drop CONFIG_CMD_DS4510_RST Simon Glass
2017-05-22 17:59   ` [U-Boot] [U-Boot,v3,04/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 05/48] Kconfig: Drop CONFIG_CMD_DS4510 Simon Glass
2017-05-22 17:59   ` [U-Boot] [U-Boot,v3,05/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 06/48] Convert CONFIG_DS4510 to Kconfig Simon Glass
2017-05-22 17:59   ` [U-Boot] [U-Boot,v3,06/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 07/48] Kconfig: Drop CONFIG_SYS_I2C_DTT_ADDR Simon Glass
2017-05-22 17:59   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 08/48] Drop three-wire serial (TWS) support Simon Glass
2017-05-22 17:59   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 09/48] Drop digital thermometer and thermostat (DTT) drivers Simon Glass
2017-05-22 17:59   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 10/48] Kconfig: Drop CONFIG_SYS_I2C_DS1621_ADDR Simon Glass
2017-05-22 18:00   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 11/48] Kconfig: Drop CONFIG_SYS_I2C_DS4510_ADDR Simon Glass
2017-05-22 18:00   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 12/48] Convert CONFIG_CMD_ECCTEST to Kconfig Simon Glass
2017-05-22 18:00   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 13/48] Convert CONFIG_CMD_EECONFIG " Simon Glass
2017-05-22 18:00   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 14/48] Convert CONFIG_CMD_EEPROM et al " Simon Glass
2017-05-22 18:00   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 15/48] Convert CONFIG_CMD_ENTERRCM " Simon Glass
2017-05-22 18:00   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 16/48] Kconfig: Drop CONFIG_CMD_ENV Simon Glass
2017-05-22 18:01   ` [U-Boot] [U-Boot,v3,16/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 17/48] Convert CONFIG_CMD_ENV_CALLBACK to Kconfig Simon Glass
2017-05-22 18:01   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 18/48] Convert CONFIG_CMD_ENV_FLAGS " Simon Glass
2017-05-22 18:01   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 19/48] Convert CONFIG_CMD_ERRATA " Simon Glass
2017-05-22 18:01   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-22 18:01   ` Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 20/48] Convert CONFIG_CMD_ESBC_VALIDATE " Simon Glass
2017-05-22 18:01   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 21/48] Convert CONFIG_CMD_ETHSW " Simon Glass
2017-05-22 18:02   ` [U-Boot] [U-Boot,v3,21/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 22/48] Convert CONFIG_CMD_FDC " Simon Glass
2017-05-22 18:02   ` [U-Boot] [U-Boot,v3,22/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 23/48] Kconfig: Drop CONFIG_CMD_FDT_MAX_DUMP Simon Glass
2017-05-22 18:02   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 24/48] Convert CONFIG_CMD_FPGAD to Kconfig Simon Glass
2017-05-22 18:02   ` [U-Boot] [U-Boot,v3,24/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 25/48] Convert CONFIG_CMD_FPGA_LOADBP et al " Simon Glass
2017-05-22 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 26/48] Convert CONFIG_CMD_FUSE " Simon Glass
2017-05-22 18:03   ` [U-Boot] [U-Boot,v3,26/48] " Tom Rini
2017-05-17  9:25 ` Simon Glass [this message]
2017-05-22 18:03   ` [U-Boot] [U-Boot, v3, 27/48] Convert CONFIG_CMD_GETTIME " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 28/48] Convert CONFIG_CMD_GSC " Simon Glass
2017-05-22 18:03   ` [U-Boot] [U-Boot,v3,28/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 29/48] Convert CONFIG_CMD_HASH " Simon Glass
2017-05-17 13:11   ` Tom Rini
2017-05-22 18:03   ` [U-Boot] [U-Boot,v3,29/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 30/48] Kconfig: Add CONFIG_HASH to enable hashing API Simon Glass
2017-05-17 13:13   ` Tom Rini
2017-05-17 15:07     ` Simon Glass
2017-05-17  9:25 ` [U-Boot] [PATCH v3 31/48] Convert CONFIG_CMD_HD44760 to Kconfig Simon Glass
2017-05-22 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 32/48] Convert CONFIG_CMD_HDMIDETECT " Simon Glass
2017-05-22 18:03   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 33/48] Convert CONFIG_CMD_IDE " Simon Glass
2017-05-22 18:04   ` [U-Boot] [U-Boot,v3,33/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 34/48] Kconfig: Add a CONFIG_IDE option Simon Glass
2017-05-22 18:04   ` [U-Boot] [U-Boot,v3,34/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 35/48] Convert CONFIG_CMD_IMMAP to Kconfig Simon Glass
2017-05-22 18:04   ` [U-Boot] [U-Boot,v3,35/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 36/48] Kconfig: Drop CONFIG_CMD_IMXOTP Simon Glass
2017-05-22 18:04   ` [U-Boot] [U-Boot,v3,36/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 37/48] Kconfig: Drop CONFIG_CMD_IMX_FUSE Simon Glass
2017-05-22 18:05   ` [U-Boot] [U-Boot,v3,37/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 38/48] Convert CONFIG_CMD_IO to Kconfig Simon Glass
2017-05-22 18:05   ` [U-Boot] [U-Boot,v3,38/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 39/48] Convert CONFIG_CMD_IOLOOP " Simon Glass
2017-05-22 18:05   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 40/48] Convert CONFIG_CMD_IOTRACE " Simon Glass
2017-05-22 18:05   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 41/48] Convert CONFIG_CMD_JFFS2 " Simon Glass
2017-05-22 18:06   ` [U-Boot] [U-Boot,v3,41/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 42/48] fs: Kconfig: Add a separate option for FS_JFFS2 Simon Glass
2017-05-22 18:06   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 43/48] Convert CONFIG_CMD_IRQ to Kconfig Simon Glass
2017-05-22 18:06   ` [U-Boot] [U-Boot,v3,43/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 44/48] Convert CONFIG_CMD_KGDB " Simon Glass
2017-05-22 18:06   ` [U-Boot] [U-Boot,v3,44/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 45/48] Kconfig: Drop CONFIG_CMD_LOADY Simon Glass
2017-05-22 18:06   ` [U-Boot] [U-Boot,v3,45/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 46/48] Convert CONFIG_LZMA to Kconfig Simon Glass
2017-05-22 18:06   ` [U-Boot] [U-Boot,v3,46/48] " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 47/48] Convert CONFIG_CMD_LZMADEC " Simon Glass
2017-05-22 18:07   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-05-17  9:25 ` [U-Boot] [PATCH v3 48/48] sandbox: Enable CMD_GETTIME Simon Glass
2017-05-22 18:07   ` [U-Boot] [U-Boot,v3,48/48] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170517092544.19357-28-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.