Skip to content

Commit 6bc745b

Browse files
committed
arch/sim: add SIM_RPMSG_VIRTIO Kconfig option
Add a new Kconfig option SIM_RPMSG_VIRTIO to enable RPMsg VirtIO Lite driver support for the simulator. This option automatically selects RPMSG_VIRTIO_LITE when enabled. Also update rpproxy_virtio and rpserver_virtio defconfigs to enable this new option. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
1 parent d066538 commit 6bc745b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

arch/sim/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,4 +939,11 @@ config SIM_CUSTOM_DATA_SECTION
939939
Custom data section name for Simulator to allow
940940
developer to define special data sections.
941941

942+
config SIM_RPMSG_VIRTIO
943+
bool "RPMsg-VirtIO for Simulator"
944+
default n
945+
select RPMSG_VIRTIO_LITE
946+
---help---
947+
Enable the Sim RPMsg VirtIO Lite Driver Support
948+
942949
endif # ARCH_SIM

boards/sim/sim/sim/configs/rpproxy_virtio/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ CONFIG_SCHED_WAITPID=y
6767
CONFIG_SENSORS=y
6868
CONFIG_SENSORS_RPMSG=y
6969
CONFIG_SIG_DEFAULT=y
70+
CONFIG_SIM_RPMSG_VIRTIO=y
7071
CONFIG_SYSLOG_PREFIX=y
7172
CONFIG_SYSLOG_PREFIX_STRING="proxy"
7273
CONFIG_SYSLOG_RPMSG=y

boards/sim/sim/sim/configs/rpserver_virtio/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ CONFIG_SIM_HOSTFS=y
8888
CONFIG_SIM_NETDEV=y
8989
CONFIG_SIM_NET_BRIDGE=y
9090
CONFIG_SIM_RPMSG_MASTER=y
91+
CONFIG_SIM_RPMSG_VIRTIO=y
9192
CONFIG_SIM_UART0_NAME="/dev/ttyUSB0"
9293
CONFIG_SIM_UART_NUMBER=1
9394
CONFIG_SYSLOG_PREFIX=y

0 commit comments

Comments
 (0)