configs: tegra-common-post: make PXE and DHCP boot targets optional

Disabling the network related features in defconfig causes build to
fail so make them optional.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS Grouper E1565
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30
Signed-off-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Jonas Schwöbel 2023-06-30 10:29:01 +03:00 committed by Thierry Reding
parent 12b3887088
commit c8cd4db6f1

View file

@ -13,13 +13,25 @@
#define BOOT_TARGET_USB(func) #define BOOT_TARGET_USB(func)
#endif #endif
#if CONFIG_IS_ENABLED(CMD_DHCP) && CONFIG_IS_ENABLED(CMD_PXE)
#define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
#else
#define BOOT_TARGET_PXE(func)
#endif
#if CONFIG_IS_ENABLED(CMD_DHCP)
#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
#else
#define BOOT_TARGET_DHCP(func)
#endif
#ifndef BOOT_TARGET_DEVICES #ifndef BOOT_TARGET_DEVICES
#define BOOT_TARGET_DEVICES(func) \ #define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 1) \ func(MMC, mmc, 1) \
func(MMC, mmc, 0) \ func(MMC, mmc, 0) \
BOOT_TARGET_USB(func) \ BOOT_TARGET_USB(func) \
func(PXE, pxe, na) \ BOOT_TARGET_PXE(func) \
func(DHCP, dhcp, na) BOOT_TARGET_DHCP(func)
#endif #endif
#include <config_distro_bootcmd.h> #include <config_distro_bootcmd.h>