]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
virtio: cmd: Depend on VIRTIO_BLK
authorDaniel Palmer <daniel@thingy.jp>
Sat, 16 May 2026 07:39:59 +0000 (16:39 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 22 May 2026 22:47:54 +0000 (16:47 -0600)
The virtio command is calling virtio blk functions but currently
depends on CONFIG_VIRTIO only. This means disabling CONFIG_VIRTIO_BLK
causes the final link to fail.

Since CONFIG_VIRTIO_BLK depends on CONFIG_VIRTIO switch to depending
on just CONFIG_VIRTIO_BLK

Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Daniel Palmer <daniel@thingy.jp>
cmd/Kconfig

index c71c6824a196347c008f247286dc9710d8578221..032e55e81276c58e8ff589496781ed59701ecce3 100644 (file)
@@ -1871,8 +1871,8 @@ config CMD_PVBLOCK
 
 config CMD_VIRTIO
        bool "virtio"
-       depends on VIRTIO
-       default y if VIRTIO
+       depends on VIRTIO_BLK
+       default y if VIRTIO_BLK
        help
          VirtIO block device support