sim/sim_bringup: make rpmsg services init controled by CONFIG_RPMSG

Because all rpmsg services depends on RPMSG instead RPTUN

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang
2024-02-04 11:05:17 +08:00
committed by Xiang Xiao
parent fcfd5e8ebf
commit f246907e78
+3 -3
View File
@@ -463,11 +463,12 @@ int sim_bringup(void)
#endif
#ifdef CONFIG_RPTUN
#ifdef CONFIG_SIM_RPTUN_MASTER
# ifdef CONFIG_SIM_RPTUN_MASTER
sim_rptun_init("server-proxy", "proxy",
SIM_RPTUN_MASTER | SIM_RPTUN_NOBOOT);
#else
# else
sim_rptun_init("server-proxy", "server", SIM_RPTUN_SLAVE);
# endif
#endif
#ifdef CONFIG_DEV_RPMSG
@@ -483,7 +484,6 @@ int sim_bringup(void)
#ifdef CONFIG_RPMSGMTD
rpmsgmtd_register("server", "/dev/rammtd", NULL);
#endif
#endif
#ifdef CONFIG_SIM_WTGAHRS2_UARTN
#if CONFIG_SIM_WTGAHRS2_UARTN == 0