This seems to work for the latest u-boot but not the version I'm trying to build (v2023.10). I did figure it out though. "BOOT_TARGET_DEVICES" is defined in u-boot/include/configs/[board].h and I just had to remove the lines for PXE and DHCP. The comment at line 12 in config_distro_bootcmd.h explains the odd-looking error I was getting.
-- [email protected] On Sat, Nov 1, 2025, at 2:44 PM, Fabio Estevam wrote: > On Sat, Nov 1, 2025 at 12:15 PM <[email protected]> wrote: >> >> I want to build u-boot without a network stack (the target machine only >> needs to boot from usb, nvme and mmc devices) but disabling pxe causes a >> dependency problem. Does anyone know how to resolve this? > > Try passing CONFIG_NO_NET=y in your defconfig file.

