You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/12/25 20:07:17 UTC
[incubator-nuttx] 01/02: rpmsg_uart: fix compile break when enable
rptun
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit b83ae99456fd704b7c6acd8ead9be5ad6e3ecf31
Author: dongjiuzhu <do...@xiaomi.com>
AuthorDate: Fri Dec 25 10:44:40 2020 +0800
rpmsg_uart: fix compile break when enable rptun
nuttx.rel: In function `rpmsg_serialinit':
nuttx/arch/sim/src/sim/up_rptun.c:257: undefined reference to `uart_rpmsg_init'
collect2: error: ld returned 1 exit status
Makefile:310: recipe for target 'nuttx' failed
Change-Id: I93a20941bc07f749165dc8f012da46ddb7b02b00
Signed-off-by: dongjiuzhu <do...@xiaomi.com>
---
arch/sim/src/sim/up_rptun.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sim/src/sim/up_rptun.c b/arch/sim/src/sim/up_rptun.c
index fd9ab2a..57c3ff5 100644
--- a/arch/sim/src/sim/up_rptun.c
+++ b/arch/sim/src/sim/up_rptun.c
@@ -248,6 +248,7 @@ int up_rptun_init(void)
return 0;
}
+#if CONFIG_RPMSG_UART
void rpmsg_serialinit(void)
{
#if CONFIG_SIM_RPTUN_MASTER
@@ -256,3 +257,4 @@ void rpmsg_serialinit(void)
uart_rpmsg_init("server", "proxy", 4096, true);
#endif
}
+#endif