[Concept,04/15] ulib: Disable network setup

Message ID 20250905170132.182249-5-sjg@u-boot.org
State New
Headers
Series ulib: Provide test programs and documentation |

Commit Message

Simon Glass Sept. 5, 2025, 5:01 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

The application may not wish to use networking, so avoid setting it up
and the associated console output.

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

 common/board_r.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/common/board_r.c b/common/board_r.c
index 22506effae6..a19c3138962 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -458,6 +458,9 @@  static int initr_malloc_bootparams(void)
 #if CONFIG_IS_ENABLED(NET) || CONFIG_IS_ENABLED(NET_LWIP)
 static int initr_net(void)
 {
+	if (gd_ulib())
+		return 0;
+
 	puts("Net:   ");
 	eth_initialize();
 #if defined(CONFIG_RESET_PHY_R)