From: Bin Meng <bmeng.cn@gmail.com>
Date: Thu, 25 Feb 2021 09:22:45 +0000 (+0800)
Subject: cmd: Fix virtio command dependency
X-Git-Tag: v2025.01-rc5-pxa1908~1970^2~14
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=05173eca33510b76629fd2c87c969c8db619bb73;p=u-boot.git

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>
---

diff --git a/cmd/Kconfig b/cmd/Kconfig
index fcf59cd238..eff238cb38 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