mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] common Kconfig: Add missing depends on
@ 2013-11-26 16:15 Sascha Hauer
  2013-11-26 16:15 ` [PATCH 2/2] common Kconfig: disable unused options for SHELL_NONE Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2013-11-26 16:15 UTC (permalink / raw)
  To: barebox

CONFIG_MAXARGS is only used with the simple console support, so add
a 'depends on'. While at it, move it below the shell selection.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/Kconfig | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/common/Kconfig b/common/Kconfig
index ccfbc80..f47602e 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -292,11 +292,6 @@ config CBSIZE
 	prompt "Buffer size for input from the Console"
 	default 1024
 
-config MAXARGS
-	int
-	prompt "max. Number of arguments accepted for monitor commands"
-	default 16
-
 choice
 	prompt "Select your shell"
 
@@ -328,6 +323,12 @@ choice
 		  at the end of the barebox startup process.
 endchoice
 
+config MAXARGS
+	int
+	depends on SHELL_SIMPLE
+	prompt "max. Number of arguments accepted for monitor commands"
+	default 16
+
 config GLOB
 	bool
 	prompt "hush globbing support"
-- 
1.8.4.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2/2] common Kconfig: disable unused options for SHELL_NONE
  2013-11-26 16:15 [PATCH 1/2] common Kconfig: Add missing depends on Sascha Hauer
@ 2013-11-26 16:15 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-11-26 16:15 UTC (permalink / raw)
  To: barebox

Let commandline editing and long help depend on !SHELL_NONE.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index f47602e..623372b 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -285,6 +285,7 @@ config SIMPLE_READLINE
 
 config LONGHELP
 	bool
+	depends on !SHELL_NONE
 	prompt "Enable long help texts"
 
 config CBSIZE
@@ -365,6 +366,7 @@ config HUSH_GETOPT
 	  This enables a getopt function builtin to hush.
 
 config CMDLINE_EDITING
+	depends on !SHELL_NONE
 	bool
 	prompt "Enable command line editing"
 
-- 
1.8.4.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-26 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-26 16:15 [PATCH 1/2] common Kconfig: Add missing depends on Sascha Hauer
2013-11-26 16:15 ` [PATCH 2/2] common Kconfig: disable unused options for SHELL_NONE Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox