]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: Fix virtio command dependency
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:45 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:43 +0000 (10:25 +0530)
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>
cmd/Kconfig

index fcf59cd23834da2fa459ba63df1e273c6c261829..eff238cb38f37af25ff43c0e8bdc398873133d0d 100644 (file)
@@ -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