From 7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 20 Feb 2018 08:20:20 +0100 Subject: 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 --- common/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/Kconfig') 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 -- cgit v1.2.3