diff --git a/arch/arm/src/common/up_internal.h b/arch/arm/src/common/up_internal.h index 71d08abbdcc..90cc2bfbc3f 100644 --- a/arch/arm/src/common/up_internal.h +++ b/arch/arm/src/common/up_internal.h @@ -64,6 +64,9 @@ # if defined(CONFIG_ARM_LWL_CONSOLE) # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT +# elif defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT # else # define USE_SERIALDRIVER 1 # define USE_EARLYSERIALINIT 1 diff --git a/arch/avr/src/at32uc3/at32uc3_config.h b/arch/avr/src/at32uc3/at32uc3_config.h index 2a5d1e04a15..845f9f5545a 100644 --- a/arch/avr/src/at32uc3/at32uc3_config.h +++ b/arch/avr/src/at32uc3/at32uc3_config.h @@ -153,7 +153,10 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# if defined(HAVE_RS232_DEVICE) +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# elif defined(HAVE_RS232_DEVICE) # define USE_SERIALDRIVER 1 # define USE_EARLYSERIALINIT 1 # else diff --git a/arch/avr/src/at90usb/at90usb_config.h b/arch/avr/src/at90usb/at90usb_config.h index 91b172ecaff..1f0f1844b54 100644 --- a/arch/avr/src/at90usb/at90usb_config.h +++ b/arch/avr/src/at90usb/at90usb_config.h @@ -72,7 +72,10 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# if defined(HAVE_USART_DEVICE) +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# elif defined(HAVE_USART_DEVICE) # define USE_SERIALDRIVER 1 # define USE_EARLYSERIALINIT 1 # else diff --git a/arch/avr/src/atmega/atmega_config.h b/arch/avr/src/atmega/atmega_config.h index f764b8a6890..ffe6a405d7e 100644 --- a/arch/avr/src/atmega/atmega_config.h +++ b/arch/avr/src/atmega/atmega_config.h @@ -78,7 +78,10 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# if defined(HAVE_USART_DEVICE) +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# elif defined(HAVE_USART_DEVICE) # define USE_SERIALDRIVER 1 # define USE_EARLYSERIALINIT 1 # else diff --git a/arch/hc/src/common/up_internal.h b/arch/hc/src/common/up_internal.h index 3f845594b71..d85ba340544 100644 --- a/arch/hc/src/common/up_internal.h +++ b/arch/hc/src/common/up_internal.h @@ -61,8 +61,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may diff --git a/arch/mips/src/common/up_internal.h b/arch/mips/src/common/up_internal.h index 5de04e5c2f5..9a100687eac 100644 --- a/arch/mips/src/common/up_internal.h +++ b/arch/mips/src/common/up_internal.h @@ -58,8 +58,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may diff --git a/arch/misoc/src/lm32/lm32.h b/arch/misoc/src/lm32/lm32.h index fab887bae8e..64c07227f03 100644 --- a/arch/misoc/src/lm32/lm32.h +++ b/arch/misoc/src/lm32/lm32.h @@ -78,8 +78,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /**************************************************************************** diff --git a/arch/misoc/src/minerva/minerva.h b/arch/misoc/src/minerva/minerva.h index 6c73a7b74e3..ff9bdb06a22 100644 --- a/arch/misoc/src/minerva/minerva.h +++ b/arch/misoc/src/minerva/minerva.h @@ -78,8 +78,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /**************************************************************************** diff --git a/arch/or1k/src/common/up_internal.h b/arch/or1k/src/common/up_internal.h index ed5cfe0bc7e..3a76708f05b 100644 --- a/arch/or1k/src/common/up_internal.h +++ b/arch/or1k/src/common/up_internal.h @@ -61,8 +61,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may diff --git a/arch/renesas/src/common/up_internal.h b/arch/renesas/src/common/up_internal.h index 03f0067f134..a83a4df1792 100644 --- a/arch/renesas/src/common/up_internal.h +++ b/arch/renesas/src/common/up_internal.h @@ -66,8 +66,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may diff --git a/arch/risc-v/src/common/up_internal.h b/arch/risc-v/src/common/up_internal.h index 50a5b36d014..283ea28507b 100644 --- a/arch/risc-v/src/common/up_internal.h +++ b/arch/risc-v/src/common/up_internal.h @@ -86,8 +86,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /**************************************************************************** diff --git a/arch/x86/src/common/up_internal.h b/arch/x86/src/common/up_internal.h index fcd06ccf2e8..11f63535e35 100644 --- a/arch/x86/src/common/up_internal.h +++ b/arch/x86/src/common/up_internal.h @@ -60,8 +60,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may diff --git a/arch/xtensa/src/common/xtensa.h b/arch/xtensa/src/common/xtensa.h index b9a4d5faecb..c50b269cb98 100644 --- a/arch/xtensa/src/common/xtensa.h +++ b/arch/xtensa/src/common/xtensa.h @@ -61,8 +61,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may diff --git a/arch/z16/src/common/up_internal.h b/arch/z16/src/common/up_internal.h index 46452227571..3de83e70085 100644 --- a/arch/z16/src/common/up_internal.h +++ b/arch/z16/src/common/up_internal.h @@ -67,8 +67,13 @@ # undef USE_SERIALDRIVER # undef USE_EARLYSERIALINIT #else -# define USE_SERIALDRIVER 1 -# define USE_EARLYSERIALINIT 1 +# if defined(CONFIG_CONSOLE_SYSLOG) +# undef USE_SERIALDRIVER +# undef USE_EARLYSERIALINIT +# else +# define USE_SERIALDRIVER 1 +# define USE_EARLYSERIALINIT 1 +# endif #endif /* If some other device is used as the console, then the serial driver may