修訂 | 3a57ad0957c3e104e8cae99b9896b1f54bf3d26a (tree) |
---|---|
時間 | 2022-07-21 17:14:04 |
作者 | Pali Rohár <pali@kern...> |
Commiter | Stefan Roese |
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>
@@ -32,13 +32,43 @@ | ||
32 | 32 | */ |
33 | 33 | #define DEFAULT_ENV_IS_RW /* required for configuring default fdtfile= */ |
34 | 34 | |
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 | + | |
35 | 65 | #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) | |
42 | 72 | |
43 | 73 | #include <config_distro_bootcmd.h> |
44 | 74 |