Skip to content

Commit f5024c7

Browse files
committed
tests: drivers: build_all: virtio: add VirtIO MMIO build test
Add the `qemu_cortex_a53` configuration to run the build test for the VirtIO MMIO driver. To add this test, we have split the virtio-pci and virtio-mmio test cases. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 099c32b commit f5024c7

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2025 TOKITA Hiroshi
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,entropy = &virtio_entropy;
10+
};
11+
};
12+
13+
&virtio_mmio0 {
14+
status = "okay";
15+
16+
virtio_entropy: virtio_entropy {
17+
compatible = "virtio,entropy";
18+
status = "okay";
19+
};
20+
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
CONFIG_TEST=y
22
CONFIG_VIRTIO=y
3-
CONFIG_PCIE=y
43
CONFIG_HEAP_MEM_POOL_SIZE=1024
54
CONFIG_ENTROPY_GENERATOR=y
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
common:
2-
filter: CONFIG_DT_HAS_VIRTIO_PCI_ENABLED
32
build_only: true
43
tags:
54
- drivers
65
- virtio
76
tests:
8-
drivers.virtio_pci.build: {}
7+
drivers.virtio_pci.build:
8+
extra_configs:
9+
- CONFIG_PCIE=y
10+
filter: CONFIG_DT_HAS_VIRTIO_PCI_ENABLED
11+
drivers.virtio_mmio.build:
12+
filter: CONFIG_DT_HAS_VIRTIO_MMIO_ENABLED

0 commit comments

Comments
 (0)