mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-20 19:48:51 +01:00
32 lines
883 B
Diff
32 lines
883 B
Diff
--- a/include/configs/sunxi-common.h 2017-08-12 11:24:24.000000000 +0200
|
|
+++ b/include/configs/sunxi-common.h 2019-05-02 23:02:22.078624435 +0200
|
|
@@ -475,14 +475,26 @@
|
|
#define BOOTENV_DEV_NAME_FEL(devtypeu, devtypel, instance) \
|
|
"fel "
|
|
|
|
+#if 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
|
|
+
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
func(FEL, fel, na) \
|
|
BOOT_TARGET_DEVICES_MMC(func) \
|
|
BOOT_TARGET_DEVICES_MMC_EXTRA(func) \
|
|
BOOT_TARGET_DEVICES_SCSI(func) \
|
|
BOOT_TARGET_DEVICES_USB(func) \
|
|
- func(PXE, pxe, na) \
|
|
- func(DHCP, dhcp, na)
|
|
+ BOOT_TARGET_PXE(func) \
|
|
+ BOOT_TARGET_DHCP(func)
|
|
|
|
#ifdef CONFIG_OLD_SUNXI_KERNEL_COMPAT
|
|
#define BOOTCMD_SUNXI_COMPAT \
|