summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-02-20 08:20:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-22 08:28:46 +0100
commit7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2 (patch)
tree6a7004cc79bda34e3e46bcb53292247d13849913 /common/Kconfig
parente18cc5b7e9ce0ac71f0e00f166ca2e2afcc3f466 (diff)
downloadbarebox-7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2.tar.gz
barebox-7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2.tar.xz
console: move global.allow_color handling to C code
We have global.allow_color, but this is limited to the environment only. Move creation and handling of this variable to C code so that we can add support for colored output to commands/console controlled by the same variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index a21f3e51b2..25de2485cd 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -751,6 +751,14 @@ config CONSOLE_ACTIVATE_NONE
endchoice
+config CONSOLE_ALLOW_COLOR
+ prompt "Allow colored console output during boot"
+ bool
+ help
+ If enabled, colored output is allowed during boot. This is the
+ compile time default for colored console output. After boot it
+ can be controlled using global.allow_color.
+
config PBL_CONSOLE
depends on PBL_IMAGE
depends on !CONSOLE_NONE