[PATCH] spl: fix incorrect dependency for SPL_NET

Quentin Schulz foss+uboot at 0leil.net
Thu Dec 18 13:05:14 CET 2025


From: Quentin Schulz <quentin.schulz at cherry.de>

SPL_NET depends on symbols that are only available if the legacy
networking stable is made available. It is however possible to build
U-Boot without a networking stack at all, in which case SPL_NET will not
compile. Fix this oversight by making sure a network stack (and the
legacy one) is available.

Fixes: 8cb330355bd5 ("net: introduce alternative implementation as net/lwip/")
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
 common/spl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 3b7b6cafef8..ba434d5c46e 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1148,7 +1148,7 @@ config SPL_DM_SPI_FLASH
 
 config SPL_NET
 	bool "Support networking"
-	depends on !NET_LWIP
+	depends on NET
 	select SPL_USE_TINY_PRINTF_POINTER_SUPPORT if SPL_USE_TINY_PRINTF
 	help
 	  Enable support for network devices (such as Ethernet) in SPL.

---
base-commit: 47b50fb1125c539d80ed3e7f739c02c6486e1b52
change-id: 20251218-spl_net-deps-62072f51243a

Best regards,
-- 
Quentin Schulz <quentin.schulz at cherry.de>



More information about the U-Boot mailing list