summaryrefslogtreecommitdiff
path: root/test/dm/Makefile
diff options
context:
space:
mode:
authorAndrew Scull <[email protected]>2022-05-16 10:41:36 +0000
committerTom Rini <[email protected]>2022-06-08 09:24:04 -0400
commit8df508ff3d4cfe8a2b7a706518692e194cc7f021 (patch)
tree7dbc0823ece7d37e52ba3e4ddcd5a562a20a9553 /test/dm/Makefile
parent82c8610a44c6d4d38b90246f6893cb8e7b911e0c (diff)
test: dm: virtio: Split out virtio device tests
Virtio tests that find a child device require the virtio device driver to be included in the build so it can probe. The sandbox virtio transport driver currently reports a virtio-blk device so make sure the corresponding driver is built before running tests that need it. Signed-off-by: Andrew Scull <[email protected]>
Diffstat (limited to 'test/dm/Makefile')
-rw-r--r--test/dm/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/dm/Makefile b/test/dm/Makefile
index f0a7c97e3d1..29dd143517b 100644
--- a/test/dm/Makefile
+++ b/test/dm/Makefile
@@ -107,7 +107,10 @@ obj-$(CONFIG_TEE) += tee.o
obj-$(CONFIG_TIMER) += timer.o
obj-$(CONFIG_DM_USB) += usb.o
obj-$(CONFIG_DM_VIDEO) += video.o
-obj-$(CONFIG_VIRTIO_SANDBOX) += virtio.o
+ifeq ($(CONFIG_VIRTIO_SANDBOX),y)
+obj-y += virtio.o
+obj-$(CONFIG_VIRTIO_BLK) += virtio_device.o
+endif
ifeq ($(CONFIG_WDT_GPIO)$(CONFIG_WDT_SANDBOX),yy)
obj-y += wdt.o
endif