[PATCH] move FLEXIBLE_BOOTARGS from commands/ to common/

Sascha Hauer s.hauer at pengutronix.de
Mon Apr 25 04:39:20 PDT 2016


FLEXIBLE_BOOTARGS also works without command support being enabled.
Move this option from commands/Kconfig to common/Kconfig so that
it doesn't depend on COMMAND_SUPPORT.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 commands/Kconfig | 13 -------------
 common/Kconfig   | 12 ++++++++++++
 2 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/commands/Kconfig b/commands/Kconfig
index 875c5f4..13dd9bb 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -266,19 +266,6 @@ endmenu
 
 menu "Boot"
 
-# TODO: isn't a command
-config FLEXIBLE_BOOTARGS
-	bool
-	prompt "flexible Linux bootargs generation"
-	depends on CMD_GLOBAL
-	help
-	  Select this to get a more flexible bootargs generation. With this
-	  option the bootargs are concatenated together from global variables
-	  beginning with 'global.linux.bootargs.' and 'global.linux.mtdparts.'
-	  This allows for more flexible scripting since with it it's possible
-	  to replace parts of the bootargs string without reconstructing it
-	  completely.
-
 config CMD_AT91_BOOT_TEST
 	bool "at91_boot_test"
 	depends on ARCH_AT91
diff --git a/common/Kconfig b/common/Kconfig
index 7c09e8c..d00ca6b 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -536,6 +536,18 @@ config BLSPEC
 	  on a device and it allows the Operating System to install / update
 	  kernels.
 
+config FLEXIBLE_BOOTARGS
+	bool
+	prompt "flexible Linux bootargs generation"
+	depends on GLOBALVAR
+	help
+	  Select this to get a more flexible bootargs generation. With this
+	  option the bootargs are concatenated together from global variables
+	  beginning with 'global.linux.bootargs.' and 'global.linux.mtdparts.'
+	  This allows for more flexible scripting since with it it's possible
+	  to replace parts of the bootargs string without reconstructing it
+	  completely.
+
 config IMD
 	bool "barebox metadata support"
 
-- 
2.8.0.rc3




More information about the barebox mailing list