Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFD53F588C2 for ; Mon, 20 Apr 2026 12:54:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B93284370; Mon, 20 Apr 2026 14:54:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=0leil.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=0leil.net header.i=@0leil.net header.b="XGYICb7Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0E7A784314; Mon, 20 Apr 2026 13:36:40 +0200 (CEST) Received: from smtp-42a9.mail.infomaniak.ch (smtp-42a9.mail.infomaniak.ch [84.16.66.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A486783E16 for ; Mon, 20 Apr 2026 13:36:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=0leil.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=foss+uboot@0leil.net Received: from smtp-4-0000.mail.infomaniak.ch (unknown [IPv6:2001:1600:7:10::a6b]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4fzk392Nhwz1BrZ; Mon, 20 Apr 2026 13:36:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net; s=20231125; t=1776684995; bh=XOaq3V2QtWqfkDQYc5Xbo6GALEmFHcPFK3Z8CmBBtNo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XGYICb7QMVw+jzOK8bJaLT9sRyBg7GCxL5LJmz2/QiHBdUv2iy1pXEnMogpZQFmfg YQK5+t2yQuw7ayi2VL4JfHm/R2wNtEZ7bsC7aQBx379vkGPk0yy3YS9RD37gUbujIP 4sdn4Lg/pz16PElLPKNmTfCgqQ0kyyHfOKdmH6V9I1OpPgVHP/cVPRYMOPto+RI0Cr v5mjqp0IXeDKcdKbxfYJ6TcYk7TngAAiv7wA/VcFWS5uCNSw0qDqzGDSa0HOSnL+Ys fq2WymRVyX/8pGCpjEpuVMZKE84V82Ff5wqVAZifLhtEnmyB3YCH1WQmCNjJcARZa8 YusPBIxWjCPHw== Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4fzk310VDczVHb; Mon, 20 Apr 2026 13:36:28 +0200 (CEST) From: Quentin Schulz Date: Mon, 20 Apr 2026 13:36:07 +0200 Subject: [PATCH 1/6] move networking menu in net/Kconfig MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260420-net-kconfig-v1-1-9900002d8e72@cherry.de> References: <20260420-net-kconfig-v1-0-9900002d8e72@cherry.de> In-Reply-To: <20260420-net-kconfig-v1-0-9900002d8e72@cherry.de> To: u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com, Paul Barker Cc: Tom Rini , Jerome Forissier , Heinrich Schuchardt , Marek Vasut , Ilias Apalodimas , Peng Fan , Udit Kumar , =?utf-8?q?Alvin_=C5=A0ipraga?= , Patrick Delaunay , Patrice Chotard , Adam Ford , Manoj Sai , Matteo Lisi , Tim Harvey , Mingkai Hu , Pramod Kumar , Gilles Talis , Le Jin , Jan Kiszka , Kongyang Liu , Stefan Roese , Francesco Dolcini , Michal Simek , Mattijs Korpershoek , Casey Connolly , Vignesh Raghavendra , Bryan Brattlof , Vaishnav Achath , Jayesh Choudhary , Simon Glass , Lukasz Majewski , Marek Vasut , Sughosh Ganu , Yao Zi , Fabio Estevam , Alice Guo , Sam Protsenko , Martyn Welch , Maarten Brock , Kory Maincent , "Markus Schneider-Pargmann (TI.com)" , Padmarao Begari , Matthias Brugger , Mikhail Kshevetskiy , Heiko Schocher , Andrew Goodbody , Peter Robinson , Brian Sune , Julien Stephan , Dinesh Maniyam , Ben Dooks , Tien Fong Chee , Leo Yu-Chi Liang , Weijie Gao , Anshul Dalal , Neil Armstrong , Andre Przywara , Andrew Davis , Hrushikesh Salunke , Alexey Charkov , Dario Binacchi , Ye Li , Andreas Dannenberg , Chintan Vankar , Martin Schwan , Benjamin Hahn , David Lechner , Ariel D'Alessandro , Dmitrii Merkurev , Christian Marangi , Robert Marko , Beiyan Yun , "Lucien.Jheng" , Romain Gantois , Siddharth Vadapalli , Kever Yang , Jonas Karlman , George Chan , Balaji Selvanathan , Benjamin ROBIN , Max Merchel , Sean Edmond , Christoph Niedermaier , Shantur Rathore , "Ying-Chun Liu (PaulLiu)" , Adriano Cordova , Sky Huang , Quentin Schulz X-Mailer: b4 0.15-dev-47773 X-Infomaniak-Routing: alpha X-Mailman-Approved-At: Mon, 20 Apr 2026 14:54:20 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Quentin Schulz In the main Kconfig, there are only two more menus, General Setup and Expert, in addition to the net menu. Since the part in the main Kconfig is mostly about selecting the network stack (legacy or lwIP), and that we already have a net/Kconfig, let's move those to net/Kconfig to have everything in the same place. No intended change in behavior. Signed-off-by: Quentin Schulz --- Kconfig | 34 ---------------------------------- net/Kconfig | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Kconfig b/Kconfig index 7f00e76ba78..1fa31a4f5a8 100644 --- a/Kconfig +++ b/Kconfig @@ -791,42 +791,8 @@ source "dts/Kconfig" source "env/Kconfig" -menu "Networking" - -choice - prompt "Networking stack" - default NET - -config NO_NET - bool "No networking support" - help - Do not include networking support - -config NET - bool "Legacy U-Boot networking stack" - select NETDEVICES - help - Include networking support with U-Boot's internal implementation of - the TCP/IP protocol stack. - -config NET_LWIP - bool "Use lwIP for networking stack" - select NETDEVICES - help - Include networking support based on the lwIP (lightweight IP) - TCP/IP stack (https://nongnu.org/lwip). This is a replacement for - the default U-Boot network stack and applications located in net/ - and enabled via CONFIG_NET as well as other pieces of code that - depend on CONFIG_NET (such as cmd/net.c enabled via CONFIG_CMD_NET). - Therefore the two symbols CONFIG_NET and CONFIG_NET_LWIP are mutually - exclusive. - -endchoice - source "net/Kconfig" -endmenu - source "drivers/Kconfig" source "fs/Kconfig" diff --git a/net/Kconfig b/net/Kconfig index e45ceb25106..249c27c115d 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -2,6 +2,38 @@ # Network configuration # +menu "Networking" + +choice + prompt "Networking stack" + default NET + +config NO_NET + bool "No networking support" + help + Do not include networking support + +config NET + bool "Legacy U-Boot networking stack" + select NETDEVICES + help + Include networking support with U-Boot's internal implementation of + the TCP/IP protocol stack. + +config NET_LWIP + bool "Use lwIP for networking stack" + select NETDEVICES + help + Include networking support based on the lwIP (lightweight IP) + TCP/IP stack (https://nongnu.org/lwip). This is a replacement for + the default U-Boot network stack and applications located in net/ + and enabled via CONFIG_NET as well as other pieces of code that + depend on CONFIG_NET (such as cmd/net.c enabled via CONFIG_CMD_NET). + Therefore the two symbols CONFIG_NET and CONFIG_NET_LWIP are mutually + exclusive. + +endchoice + if NET config ARP_TIMEOUT @@ -254,3 +286,5 @@ config SYS_RX_ETH_BUFFER controllers it is recommended to set this value to 8 or even higher, since all buffers can be full shortly after enabling the interface on high Ethernet traffic. + +endmenu -- 2.53.0