From: Michal Simek Date: Wed, 28 Mar 2018 13:20:48 +0000 (+0200) Subject: arm64: zynqmp: Enable pxe and dhcp if commands are enabled X-Git-Tag: v2018.05-rc2~44^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a82f59b311e02083a07a9153f4d81d2644ef795;p=oweals%2Fu-boot.git arm64: zynqmp: Enable pxe and dhcp if commands are enabled Targets without net can't use pxe or dhcp boot methods. Signed-off-by: Michal Simek --- diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 8cdc72206c..7c6e451f1b 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -172,12 +172,24 @@ # define BOOT_TARGET_DEVICES_USB(func) #endif +#if defined(CONFIG_CMD_PXE) +# define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na) +#else +# define BOOT_TARGET_DEVICES_PXE(func) +#endif + +#if defined(CONFIG_CMD_DHCP) +# define BOOT_TARGET_DEVICES_DHCP(func) func(DHCP, dhcp, na) +#else +# define BOOT_TARGET_DEVICES_DHCP(func) +#endif + #define BOOT_TARGET_DEVICES(func) \ BOOT_TARGET_DEVICES_MMC(func) \ BOOT_TARGET_DEVICES_USB(func) \ BOOT_TARGET_DEVICES_SCSI(func) \ - func(PXE, pxe, na) \ - func(DHCP, dhcp, na) + BOOT_TARGET_DEVICES_PXE(func) \ + BOOT_TARGET_DEVICES_DHCP(func) #include