This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new b413a1f4f7 arm/armv8-r: fix build break if disable CONFIG_UART_PL011 b413a1f4f7 is described below commit b413a1f4f7b0ae3f067b352bfa912c17f2b0d53c Author: chao an <anc...@lixiang.com> AuthorDate: Tue Feb 27 17:35:43 2024 +0800 arm/armv8-r: fix build break if disable CONFIG_UART_PL011 Common code should support the if PL011 is not enabled Signed-off-by: chao an <anc...@lixiang.com> --- arch/arm/src/fvp-v8r-aarch32/fvp_serial.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/src/fvp-v8r-aarch32/fvp_serial.c b/arch/arm/src/fvp-v8r-aarch32/fvp_serial.c index 2b1355850b..677f9ae2bc 100644 --- a/arch/arm/src/fvp-v8r-aarch32/fvp_serial.c +++ b/arch/arm/src/fvp-v8r-aarch32/fvp_serial.c @@ -56,7 +56,9 @@ void arm_earlyserialinit(void) * when they are first opened. */ +#ifdef CONFIG_UART_PL011 pl011_earlyserialinit(); +#endif } /*************************************************************************** @@ -69,7 +71,16 @@ void arm_earlyserialinit(void) void arm_serialinit(void) { +#ifdef CONFIG_UART_PL011 pl011_serialinit(); +#endif +} + +#else /* USE_SERIALDRIVER */ + +int up_putc(int ch) +{ + return 0; } #endif /* USE_SERIALDRIVER */