[PATCH v3 23/95] console: Add a Kconfig for SPL_CONSOLE_MUX et al

Simon Glass sjg at chromium.org
Mon Feb 13 00:15:26 CET 2023


This and SYS_CONSOLE_IS_IN_ENV are implicitly used in the source and seem
useful, so add them.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 common/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index e3a5e1be1e9..ea9bbd52128 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -235,6 +235,10 @@ config CONSOLE_MUX
 	  adds a small amount of size to U-Boot.  Changes to the environment
 	  variables stdout, stdin and stderr will take effect immediately.
 
+config SPL_CONSOLE_MUX
+	def_bool n  # Enable console multiplexing (SPL)
+	depends on SPL
+
 config SYS_CONSOLE_IS_IN_ENV
 	bool "Select console devices from the environment"
 	default y if CONSOLE_MUX
@@ -245,6 +249,10 @@ config SYS_CONSOLE_IS_IN_ENV
 	  environment variables can be updated after boot to change the
 	  input/output devices.
 
+config SPL_SYS_CONSOLE_IS_IN_ENV
+	def_bool n  # Select console devices from the environment (SPL)
+	depends on SPL
+
 config SYS_CONSOLE_OVERWRITE_ROUTINE
 	bool "Allow board control over console overwriting"
 	help
-- 
2.39.1.581.gbfd45094c4-goog



More information about the U-Boot mailing list