[U-Boot] [PATCH v2 44/48] Convert CONFIG_CMD_KGDB to Kconfig

Simon Glass sjg at chromium.org
Tue May 16 23:39:04 UTC 2017


This converts the following to Kconfig:
   CONFIG_CMD_KGDB

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 README                       | 1 -
 cmd/Kconfig                  | 9 +++++++++
 include/config_cmd_all.h     | 1 -
 scripts/config_whitelist.txt | 1 -
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/README b/README
index 8ced3abda2..879ae8b33b 100644
--- a/README
+++ b/README
@@ -853,7 +853,6 @@ The following options need to be configured:
 		CONFIG_CMD_IMPORTENV	* import an environment
 		CONFIG_CMD_INI		* import data from an ini file into the env
 		CONFIG_CMD_ITEST	  Integer/string test of 2 values
-		CONFIG_CMD_KGDB		* kgdb
 		CONFIG_CMD_LDRINFO	* ldrinfo (display Blackfin loader)
 		CONFIG_CMD_LINK_LOCAL	* link-local IP address auto-configuration
 					  (169.254.*.*)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index d875f9cf36..d691142c82 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1200,6 +1200,15 @@ config CMD_IRQ
 
 	     interrupts - enable or disable interrupts
 	     irqinfo - print device-specific interrupt information
+
+config CMD_KGDB
+	bool "kgdb - Allow debugging of U-Boot with gdb"
+	help
+	  This enables a 'kgdb' command which allows gdb to connect to U-Boot
+	  over a serial link for debugging purposes. This allows
+	  single-stepping, inspecting variables, etc. This is supported only
+	  on PowerPC at present.
+
 endmenu
 
 config CMD_UBI
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index df21c1a483..b1f41abf4f 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_KGDB		/* kgdb				*/
 #define CONFIG_CMD_MFSL		/* FSL support for Microblaze	*/
 #define CONFIG_CMD_MTDPARTS	/* mtd parts support		*/
 #define CONFIG_CMD_NAND		/* NAND support			*/
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 017f90b367..bff0c18fd1 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -384,7 +384,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_KGDB
 CONFIG_CMD_LOADY
 CONFIG_CMD_LZMADEC
 CONFIG_CMD_MAX6957
-- 
2.13.0.303.g4ebf302169-goog



More information about the U-Boot mailing list