mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-24 23:31:44 +02:00
ARM: qemu-arm: Fix build fail with boot devices disabled
BOOT_TARGET_DEVICES should only be added if the corresponding u-boot command is enabled otherwise the build will fail. Signed-off-by: Piotr Kubik <piotr_kubik@vp.pl>
This commit is contained in:
parent
3cdfa312c6
commit
703f8c8451
@ -21,11 +21,35 @@
|
|||||||
|
|
||||||
/* Environment options */
|
/* Environment options */
|
||||||
|
|
||||||
|
#if CONFIG_IS_ENABLED(CMD_USB)
|
||||||
|
# define BOOT_TARGET_USB(func) func(USB, usb, 0)
|
||||||
|
#else
|
||||||
|
# define BOOT_TARGET_USB(func)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_IS_ENABLED(CMD_SCSI)
|
||||||
|
# define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0)
|
||||||
|
#else
|
||||||
|
# define BOOT_TARGET_SCSI(func)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_IS_ENABLED(CMD_VIRTIO)
|
||||||
|
# define BOOT_TARGET_VIRTIO(func) func(VIRTIO, virtio, 0)
|
||||||
|
#else
|
||||||
|
# define BOOT_TARGET_VIRTIO(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) \
|
#define BOOT_TARGET_DEVICES(func) \
|
||||||
func(USB, usb, 0) \
|
BOOT_TARGET_USB(func) \
|
||||||
func(SCSI, scsi, 0) \
|
BOOT_TARGET_SCSI(func) \
|
||||||
func(VIRTIO, virtio, 0) \
|
BOOT_TARGET_VIRTIO(func) \
|
||||||
func(DHCP, dhcp, na)
|
BOOT_TARGET_DHCP(func)
|
||||||
|
|
||||||
#include <config_distro_bootcmd.h>
|
#include <config_distro_bootcmd.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user