[PATCH 09/11] Kconfig: serial: Depend on correct xPL symbol

Jonas Karlman jonas at kwiboo.se
Thu Jul 9 00:05:35 CEST 2026


Change xPL_SERIAL_PRESENT symbols to depend on the xPL_DM_SERIAL symbol
intended for the related xPL phase instead of the DM_SERIAL symbol
used for U-Boot proper to make CONFIG_IS_ENABLED(SERIAL_PRESENT) guards
work as intended.

Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
---
 drivers/serial/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index e221800d5d06..f125061fe184 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -71,7 +71,7 @@ config SERIAL_PRESENT
 
 config SPL_SERIAL_PRESENT
 	bool "Provide a serial driver in SPL"
-	depends on DM_SERIAL && SPL
+	depends on SPL_DM_SERIAL
 	default y
 	help
 	  In very space-constrained devices even the full UART driver is too
@@ -81,7 +81,7 @@ config SPL_SERIAL_PRESENT
 
 config TPL_SERIAL_PRESENT
 	bool "Provide a serial driver in TPL"
-	depends on DM_SERIAL && TPL
+	depends on TPL_DM_SERIAL
 	default y
 	help
 	  In very space-constrained devices even the full UART driver is too
@@ -91,7 +91,7 @@ config TPL_SERIAL_PRESENT
 
 config VPL_SERIAL_PRESENT
 	bool "Provide a serial driver in VPL"
-	depends on DM_SERIAL && VPL
+	depends on VPL_DM_SERIAL
 	default y
 	help
 	  In very space-constrained devices even the full UART driver is too
-- 
2.54.0



More information about the U-Boot mailing list