Skip to contentSkip to conversation

spl: fix incorrect dependency for SPL_NET

PATCH Superseded Quentin Schulz 2 participants 2 messages Dec 18, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: fix incorrect dependency for SPL_NET

From: Quentin Schulz <[email protected]>

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/")
---
 common/spl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/spl/Kconfig +1 -1
index 3b7b6cafef8..ba434d5c46e 100644
@@ -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,

Signature · 1 line
Quentin Schulz <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Quentin Schulz

From: Quentin Schulz <[email protected]>

SPL_NET depends on symbols that are only available if the legacy networking stable is made available. It is however possible to build

s/stable/stack/

Quoted 28 lines

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/")
---
 common/spl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/spl/Kconfig +1 -2
index 3b7b6cafef8..ba434d5c46e 100644
@@ -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

Quoted 1 line

Best regards,

Thanks,

Signature · 1 line
Jerome