summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-07 13:18:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-09 08:57:15 +0200
commitb3dbaa9a60bb9a2bce9db50941450a6fd1dc6e19 (patch)
tree0bd14f84370270c83b2c5b06ea5620e08f00d40d /common/Kconfig
parent2909d4ca4bba7e0faa8092b972dec95d8106af99 (diff)
downloadbarebox-b3dbaa9a60bb9a2bce9db50941450a6fd1dc6e19.tar.gz
barebox-b3dbaa9a60bb9a2bce9db50941450a6fd1dc6e19.tar.xz
console: cleanup Kconfig
Use a choice for the CONSOLE_ACTIVATE_* variables, which is the natural way of specifying mutually exclusive variabled in Kconfig. Also update the help texts a bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig35
1 files changed, 26 insertions, 9 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 9210739ee4..107774c66d 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -468,17 +468,19 @@ config CONSOLE_FULL
prompt "Enable full console support"
help
This option enables full console support capable of
- handling multiple consoles.
+ handling multiple consoles. Also the full console support
+ is able to store the output which comes before a console
+ is registered in a circular buffer which will be printed
+ once the first console is registered. Recommended for most
+ usecases.
-config CONSOLE_SIMPLE
- bool
- default y
- depends on !CONSOLE_FULL
+choice
+ prompt "Console activation strategy"
+ depends on CONSOLE_FULL
+ default CONSOLE_ACTIVATE_FIRST
config CONSOLE_ACTIVATE_FIRST
- depends on CONSOLE_FULL
bool
- default y
prompt "activate first console on startup"
help
Normally on startup all consoles are disabled, so you won't
@@ -486,13 +488,28 @@ config CONSOLE_ACTIVATE_FIRST
enables the first console.
config CONSOLE_ACTIVATE_ALL
- depends on CONSOLE_FULL
- depends on !CONSOLE_ACTIVATE_FIRST
bool
prompt "activate all consoles on startup"
help
Enabling this options activates all consoles on startup, so
you will get output and a prompt on all consoles simultaneously.
+ Only the first registered console will have the full startup
+ log though.
+
+config CONSOLE_ACTIVATE_NONE
+ prompt "leave all consoles disabled"
+ bool
+ help
+ Leave all consoles disabled on startup. Board code or environment
+ is responsible for enabling a console. Otherwise you'll get a working
+ barebox, you just won't see anything.
+
+endchoice
+
+config CONSOLE_SIMPLE
+ bool
+ default y
+ depends on !CONSOLE_FULL
config PARTITION
bool