]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
boot: Update tests around network symbols in BOOT_DEFAULTS_CMDS
authorTom Rini <trini@konsulko.com>
Tue, 17 Mar 2026 01:24:28 +0000 (19:24 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 30 Mar 2026 21:02:27 +0000 (15:02 -0600)
As exposed by "make randconfig", we have an issues around a number of
symbols in BOOT_DEFAULTS_CMDS. Due to the nature of how we currently
handle other networking related command options, we need to be testing
for "!NO_NET" (which is the symbol for no networking stack) or "NET ||
NET_LWIP" rather than CMD_NET alone. For consistency and clarity here
use "CMD_NET && !NO_NET" here.

Signed-off-by: Tom Rini <trini@konsulko.com>
boot/Kconfig

index 7849928fc37ddcefd918b175fc79c2eb907018e9..afbd0e735163ca8e7bae76aca1e792ac19291a53 100644 (file)
@@ -431,12 +431,12 @@ config BOOT_DEFAULTS_CMDS
        select CMD_FAT
        select CMD_FS_GENERIC
        select CMD_PART if PARTITIONS
-       select CMD_DHCP if CMD_NET
-       select CMD_PING if CMD_NET
-       select CMD_PXE if CMD_NET
+       select CMD_DHCP if CMD_NET && !NO_NET
+       select CMD_PING if CMD_NET && !NO_NET
+       select CMD_PXE if CMD_NET && !NO_NET
        select CMD_BOOTI if ARM64
        select CMD_BOOTZ if ARM && !ARM64
-       imply CMD_MII if NET || NET_LWIP
+       imply CMD_MII if CMD_NET && !NO_NET
 
 config BOOT_DEFAULTS
        bool  # Common defaults for standard boot and distroboot