aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-02-25 17:22:45 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2021-03-05 10:25:43 +0530
commit05173eca33510b76629fd2c87c969c8db619bb73 (patch)
treea2cc95957237ced9e4db6843acd02fd0ac4523e8
parent3fc735d4a5dcca334e65485fdd22ca1b5bf793fe (diff)
downloadu-boot-05173eca33510b76629fd2c87c969c8db619bb73.zip
u-boot-05173eca33510b76629fd2c87c969c8db619bb73.tar.gz
u-boot-05173eca33510b76629fd2c87c969c8db619bb73.tar.bz2
cmd: Fix virtio command dependency
The 'virtio' command calls blk_common_cmd() which is only available when CONFIG_HAVE_BLOCK_DEVICE is on. Fix the Kconfig dependency. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
-rw-r--r--cmd/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index fcf59cd..eff238c 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1345,6 +1345,7 @@ config CMD_PVBLOCK
config CMD_VIRTIO
bool "virtio"
depends on VIRTIO
+ depends on HAVE_BLOCK_DEVICE
default y if VIRTIO
help
VirtIO block device support