From 6485093277ccd81e95659309424f9528cf23c63b Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Tue, 31 Dec 2024 15:30:33 +0800 Subject: [PATCH] rpproxy_virtio/rpserver_virtio: fix the compile error 1. Change the CONFIG_RPMSG_VIRTIO to CONFIG_RPMSG_VIRTIO_LITE 2. fix the error when modify the sim_rpmsg_virtio to port to rpsmg_virtio_lite; Signed-off-by: Bowen Wang --- arch/sim/src/sim/sim_rpmsg_virtio.c | 2 +- boards/sim/sim/sim/configs/rpproxy_virtio/defconfig | 2 +- boards/sim/sim/sim/configs/rpserver_virtio/defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sim/src/sim/sim_rpmsg_virtio.c b/arch/sim/src/sim/sim_rpmsg_virtio.c index 918a8716a6..6e459c1263 100644 --- a/arch/sim/src/sim/sim_rpmsg_virtio.c +++ b/arch/sim/src/sim/sim_rpmsg_virtio.c @@ -100,7 +100,7 @@ sim_rpmsg_virtio_get_resource(struct rpmsg_virtio_lite_s *dev) } rsc = &priv->shmem->rsc; - cmd = RPMSG_VIRTIO_RSC2CMD(rsc); + cmd = RPMSG_VIRTIO_LITE_RSC2CMD(rsc); if (priv->master) { diff --git a/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig b/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig index 4530dc4c26..8c70c79a7e 100644 --- a/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig +++ b/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig @@ -55,7 +55,7 @@ CONFIG_READLINE_TABCOMPLETION=y CONFIG_RPMSGMTD=y CONFIG_RPMSG_PING=y CONFIG_RPMSG_UART=y -CONFIG_RPMSG_VIRTIO=y +CONFIG_RPMSG_VIRTIO_LITE=y CONFIG_RTC=y CONFIG_RTC_ARCH=y CONFIG_RTC_DRIVER=y diff --git a/boards/sim/sim/sim/configs/rpserver_virtio/defconfig b/boards/sim/sim/sim/configs/rpserver_virtio/defconfig index 3a2686b63d..b92d454688 100644 --- a/boards/sim/sim/sim/configs/rpserver_virtio/defconfig +++ b/boards/sim/sim/sim/configs/rpserver_virtio/defconfig @@ -73,7 +73,7 @@ CONFIG_REGULATOR_RPMSG=y CONFIG_RPMSGMTD_SERVER=y CONFIG_RPMSG_PING=y CONFIG_RPMSG_UART=y -CONFIG_RPMSG_VIRTIO=y +CONFIG_RPMSG_VIRTIO_LITE=y CONFIG_RTC=y CONFIG_RTC_ARCH=y CONFIG_RTC_DRIVER=y