Skip to content

Commit 6eca8a2

Browse files
committed
tests: drivers: build_all: virtio add VirtIO Entropy build test
Add a build test for the VirtIO Entropy driver. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 642f2f0 commit 6eca8a2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/drivers/build_all/virtio/boards/qemu_x86_64.overlay

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/ {
8+
chosen {
9+
zephyr,entropy = &virtio_entropy;
10+
};
11+
};
12+
713
&pcie0 {
814
virtio_pci: virtio_pci {
915
compatible = "virtio,pci";
@@ -16,4 +22,21 @@
1622

1723
status = "okay";
1824
};
25+
26+
virtio_entropy: virtio_entropy {
27+
compatible = "virtio,pci";
28+
29+
vendor-id = <0x1af4>;
30+
device-id = <0x1005>;
31+
32+
interrupts = <0xb 0x0 0x0>;
33+
interrupt-parent = <&intc>;
34+
35+
status = "okay";
36+
37+
device {
38+
compatible = "virtio,entropy";
39+
status = "okay";
40+
};
41+
};
1942
};

tests/drivers/build_all/virtio/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ CONFIG_TEST=y
22
CONFIG_VIRTIO=y
33
CONFIG_PCIE=y
44
CONFIG_HEAP_MEM_POOL_SIZE=1024
5+
CONFIG_ENTROPY_GENERATOR=y

0 commit comments

Comments
 (0)