mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
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:
parent
12b3887088
commit
c8cd4db6f1
1 changed files with 16 additions and 4 deletions
|
@ -8,9 +8,21 @@
|
||||||
#define __TEGRA_COMMON_POST_H
|
#define __TEGRA_COMMON_POST_H
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_CMD_USB)
|
#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
|
#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
|
#endif
|
||||||
|
|
||||||
#ifndef BOOT_TARGET_DEVICES
|
#ifndef BOOT_TARGET_DEVICES
|
||||||
|
@ -18,8 +30,8 @@
|
||||||
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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue