From: Masahiro Yamada <yamada.m@jp.panasonic.com>
Date: Tue, 16 Sep 2014 07:33:03 +0000 (+0900)
Subject: kconfig: move CONFIG_CMD_GO to Kconfig
X-Git-Tag: v2025.01-rc5-pxa1908~14617
X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=726ac8e4c505f086c1decd5263068373254ee60a;p=u-boot.git

kconfig: move CONFIG_CMD_GO to Kconfig

Since CONFIG_CMD_GO is defined in config_cmd_defaults.h
(and no board undefs it its own header), it can be moved to
Kconfig with the default value "y".

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
---

diff --git a/common/Kconfig b/common/Kconfig
index f628315dbd..7875e5e2e2 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -19,4 +19,10 @@ config CMD_EXPORTENV
 	help
 	  Export environments.
 
+config CMD_GO
+	bool "Enable go command"
+	default y
+	help
+	  Start an application at a given address.
+
 endmenu
diff --git a/include/config_cmd_defaults.h b/include/config_cmd_defaults.h
index 5761d7c3fd..0ef63eee14 100644
--- a/include/config_cmd_defaults.h
+++ b/include/config_cmd_defaults.h
@@ -9,7 +9,6 @@
 #ifndef _CONFIG_CMD_DEFAULTS_H_
 #define _CONFIG_CMD_DEFAULTS_H_
 
-#define CONFIG_CMD_GO 1
 #define CONFIG_CMD_IMPORTENV 1
 
 #endif