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 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu 2020-12-25 10:44:40 +08:00 committed by Abdelatif Guettouche
parent e1c53eaeb0
commit b83ae99456

View File

@ -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