diff options
| author | Jonas Schwöbel <[email protected]> | 2023-06-30 10:29:01 +0300 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2023-06-30 15:20:37 +0200 |
| commit | c8cd4db6f1c1eab526b93d640e13697fce0ebe42 (patch) | |
| tree | 0d29b4d602aca7064975c98c90f04dade590c0a6 | |
| parent | 12b3887088866f68cd4846e85c69a90eec43c1bf (diff) | |
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 <[email protected]> # ASUS Grouper E1565
Tested-by: Svyatoslav Ryhel <[email protected]> # LG P895 T30
Signed-off-by: Jonas Schwöbel <[email protected]>
Signed-off-by: Svyatoslav Ryhel <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
| -rw-r--r-- | include/configs/tegra-common-post.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 2d5095639ac..0d0965ecce2 100644 --- a/include/configs/tegra-common-post.h +++ b/include/configs/tegra-common-post.h @@ -8,9 +8,21 @@ #define __TEGRA_COMMON_POST_H #if IS_ENABLED(CONFIG_CMD_USB) -# define BOOT_TARGET_USB(func) func(USB, usb, 0) +#define BOOT_TARGET_USB(func) func(USB, usb, 0) #else -# define BOOT_TARGET_USB(func) +#define BOOT_TARGET_USB(func) +#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 @@ -18,8 +30,8 @@ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ BOOT_TARGET_USB(func) \ - func(PXE, pxe, na) \ - func(DHCP, dhcp, na) + BOOT_TARGET_PXE(func) \ + BOOT_TARGET_DHCP(func) #endif #include <config_distro_bootcmd.h> |
