• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂3a57ad0957c3e104e8cae99b9896b1f54bf3d26a (tree)
時間2022-07-21 17:14:04
作者Pali Rohár <pali@kern...>
CommiterStefan Roese

Log Message

arm: mvebu: a3720: Set BOOT_TARGET_DEVICES list to enabled peripherals

This allows to compile U-Boot without some boot option for some A3720 board
which does not have that peripheral.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>

Change Summary

差異

--- a/include/configs/mvebu_armada-37xx.h
+++ b/include/configs/mvebu_armada-37xx.h
@@ -32,13 +32,43 @@
3232 */
3333 #define DEFAULT_ENV_IS_RW /* required for configuring default fdtfile= */
3434
35+#ifdef CONFIG_MMC
36+#define BOOT_TARGET_DEVICES_MMC(func, i) func(MMC, mmc, i)
37+#else
38+#define BOOT_TARGET_DEVICES_MMC(func, i)
39+#endif
40+
41+#ifdef CONFIG_USB_STORAGE
42+#define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
43+#else
44+#define BOOT_TARGET_DEVICES_USB(func)
45+#endif
46+
47+#ifdef CONFIG_SCSI
48+#define BOOT_TARGET_DEVICES_SCSI(func) func(SCSI, scsi, 0)
49+#else
50+#define BOOT_TARGET_DEVICES_SCSI(func)
51+#endif
52+
53+#if defined(CONFIG_CMD_DHCP) && defined(CONFIG_CMD_PXE)
54+#define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
55+#else
56+#define BOOT_TARGET_DEVICES_PXE(func)
57+#endif
58+
59+#ifdef CONFIG_CMD_DHCP
60+#define BOOT_TARGET_DEVICES_DHCP(func) func(DHCP, dhcp, na)
61+#else
62+#define BOOT_TARGET_DEVICES_DHCP(func)
63+#endif
64+
3565 #define BOOT_TARGET_DEVICES(func) \
36- func(MMC, mmc, 1) \
37- func(MMC, mmc, 0) \
38- func(USB, usb, 0) \
39- func(SCSI, scsi, 0) \
40- func(PXE, pxe, na) \
41- func(DHCP, dhcp, na)
66+ BOOT_TARGET_DEVICES_MMC(func, 1) \
67+ BOOT_TARGET_DEVICES_MMC(func, 0) \
68+ BOOT_TARGET_DEVICES_USB(func) \
69+ BOOT_TARGET_DEVICES_SCSI(func) \
70+ BOOT_TARGET_DEVICES_PXE(func) \
71+ BOOT_TARGET_DEVICES_DHCP(func)
4272
4373 #include <config_distro_bootcmd.h>
4474