diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2021-09-15 14:36:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-10-05 13:51:11 +0200 |
commit | 87ed07a0022f0bc202be38abf4a748b5b12edf9a (patch) | |
tree | 495bc3e95508dcf5859a961165f9230001b46072 /common/Kconfig | |
parent | 230f7d9321b82d721ab4665a52a0c37d37ab45d9 (diff) | |
download | barebox-87ed07a0022f0bc202be38abf4a748b5b12edf9a.tar.gz |
console: add new CONFIG_CONSOLE_DISABLE_INPUT option
Add CONFIG_CONSOLE_DISABLE_INPUT to initialize the consoles without
input support, making default bootup effectively non-interactive.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Tested-by: Christian Melki <christian.melki@t2data.com>
Link: https://lore.barebox.org/20210915123644.1292607-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r-- | common/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 506b1dd39a..a5114c5ab7 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -812,6 +812,17 @@ config CONSOLE_ALLOW_COLOR compile time default for colored console output. After boot it can be controlled using global.allow_color. +config CONSOLE_DISABLE_INPUT + prompt "Disable input on all consoles by default (non-interactive)" + def_bool CONSOLE_NONE + help + If enabled, all consoles are initially configured to not accept any input, + making the consoles effectively non-interactive. + The active device parameter can be used to override this on a per-console + basis. + CAUTION: this will also disable input devices by default, since they are + registered as consoles. + config PBL_CONSOLE depends on PBL_IMAGE depends on !CONSOLE_NONE |