]> git.sur5r.net Git - u-boot/commitdiff
xilinx: Only enable dist boot pxe when DHCP is enabled
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 13 Apr 2018 20:26:40 +0000 (15:26 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 13 Apr 2018 20:48:38 +0000 (15:48 -0500)
Otherwise, we see this:
In file included from include/configs/zynq-common.h:183:0,
                 from include/config.h:5,
                 from include/common.h:21,
                 from env/common.c:11:
include/config_distro_bootcmd.h:319:2: error: expected ?}? before ?BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE?
  BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE
  ^
include/config_distro_bootcmd.h:319:2: note: in definition of macro ?BOOTENV_DEV_NAME_PXE?

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
include/configs/socfpga_common.h
include/configs/xilinx_zynqmp.h
include/configs/zynq-common.h

index 6580ffca2549d408237ec8d953c6924ce3db59e7..cf1f2b188664e1e197287eacff8caef614a1c08c 100644 (file)
@@ -292,7 +292,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define BOOT_TARGET_DEVICES_DHCP(func)
 #endif
 
-#ifdef CONFIG_CMD_PXE
+#if defined(CONFIG_CMD_PXE) && defined(CONFIG_CMD_DHCP)
 #define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
 #else
 #define BOOT_TARGET_DEVICES_PXE(func)
index 56c8b0cb68aae474297508a7fb8793b5c611e048..5827911c4e7488b8672ef2190cc5d8f76db8a176 100644 (file)
 # define BOOT_TARGET_DEVICES_USB(func)
 #endif
 
-#if defined(CONFIG_CMD_PXE)
+#if defined(CONFIG_CMD_PXE) && defined(CONFIG_CMD_DHCP)
 # define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
 #else
 # define BOOT_TARGET_DEVICES_PXE(func)
index 6d9924903ce86a2cca53a163be32bfe9777aa778..ae82a7aa96ac2d6261836335acec5400efce421a 100644 (file)
 #define BOOT_TARGET_DEVICES_USB(func)
 #endif
 
-#if defined(CONFIG_CMD_PXE)
+#if defined(CONFIG_CMD_PXE) && defined(CONFIG_CMD_DHCP)
 #define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
 #else
 #define BOOT_TARGET_DEVICES_PXE(func)