[PATCH 4/6] simplify NET_LEGACY || NET_LWIP condition with NET condition
Simon Glass
sjg at chromium.org
Mon Apr 20 21:42:47 CEST 2026
On 2026-04-20T11:36:06, Quentin Schulz <foss+uboot at 0leil.net> wrote:
> simplify NET_LEGACY || NET_LWIP condition with NET condition
>
> Since the move to make NET a menuconfig and NO_NET a synonym of NET=n,
> when NET is enabled, NET_LEGACY || NET_LWIP is necessarily true, so
> let's simplify the various checks across the codebase.
>
> SPL_NET_LWIP doesn't exist but SPL_NET_LEGACY is an alias for SPL_NET so
> the proper symbol is still defined in SPL whenever needed.
>
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
>
> Makefile | 2 +-
> board/engicam/imx8mp/icore_mx8mp.c | 2 +-
> board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c | 2 +-
> board/ti/am335x/board.c | 2 +-
> board/xilinx/common/board.c | 3 +--
> cmd/Kconfig | 4 ++--
> cmd/bdinfo.c | 7 +++----
> common/Kconfig | 2 +-
> common/board_r.c | 4 ++--
> doc/usage/cmd/bdinfo.rst | 7 +++----
> drivers/net/Kconfig | 2 +-
> drivers/net/phy/Kconfig | 2 +-
> drivers/usb/gadget/Kconfig | 2 +-
> env/flags.c | 10 +++++-----
> include/env_callback.h | 2 +-
> include/env_flags.h | 6 +++---
> include/net-common.h | 2 +-
> lib/efi_loader/Kconfig | 4 ++--
> net/Makefile | 2 +-
> test/cmd/bdinfo.c | 6 +++---
> test/py/tests/test_efi_loader.py | 2 +-
> test/py/tests/test_fpga.py | 4 ++--
> test/py/tests/test_net.py | 2 +-
> 23 files changed, 39 insertions(+), 42 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list