syslog/Kconfig: support config multi syslog channel

delete choice for select syslog log device

Change-Id: Ifc02e687526506afac46febec375062949869356
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-05-11 17:41:29 +08:00 committed by Xiang Xiao
parent e21fddbb34
commit 01ff3604b0

View File

@ -126,7 +126,7 @@ config SYSLOG_TIMESTAMP_FORMATTED
depends on SYSLOG_TIMESTAMP_REALTIME depends on SYSLOG_TIMESTAMP_REALTIME
---help--- ---help---
Syslog timestamp will be formatted according to the Syslog timestamp will be formatted according to the
SYSLOG_TIMESTAMP_FORMAT format string. SYSLOG_TIMESTAMP_FORMAT format string.
config SYSLOG_TIMESTAMP_LOCALTIME config SYSLOG_TIMESTAMP_LOCALTIME
bool "Use local-time timestamp" bool "Use local-time timestamp"
@ -188,14 +188,10 @@ config SYSLOG_COLOR_OUTPUT
---help--- ---help---
Enables colored output in syslog, according to message priority. Enables colored output in syslog, according to message priority.
choice if !ARCH_SYSLOG
prompt "System log device"
default SYSLOG_CONSOLE if !ARCH_LOWPUTC
default SYSLOG_DEFAULT if ARCH_LOWPUTC
depends on !ARCH_SYSLOG
config SYSLOG_CHAR config SYSLOG_CHAR
bool "Log to a character device" bool "Log to a character device"
default n
---help--- ---help---
Enable the generic character device for the SYSLOG. The full path to the Enable the generic character device for the SYSLOG. The full path to the
SYSLOG device is provided by SYSLOG_DEVPATH. A valid character device (or SYSLOG device is provided by SYSLOG_DEVPATH. A valid character device (or
@ -203,7 +199,8 @@ config SYSLOG_CHAR
config RAMLOG_SYSLOG config RAMLOG_SYSLOG
bool "Use RAMLOG for SYSLOG" bool "Use RAMLOG for SYSLOG"
depends on RAMLOG && !ARCH_SYSLOG depends on RAMLOG
default n
---help--- ---help---
Use the RAM logging device for the syslogging interface. If this Use the RAM logging device for the syslogging interface. If this
feature is enabled (along with SYSLOG), then all debug output (only) feature is enabled (along with SYSLOG), then all debug output (only)
@ -212,6 +209,7 @@ config RAMLOG_SYSLOG
config SYSLOG_CONSOLE config SYSLOG_CONSOLE
bool "Log to /dev/console" bool "Log to /dev/console"
default !ARCH_LOWPUTC && !SYSLOG_RPMSG && !RAMLOG_SYSLOG && !SYSLOG_CHAR
depends on DEV_CONSOLE depends on DEV_CONSOLE
---help--- ---help---
Use the system console as a SYSLOG output device. Use the system console as a SYSLOG output device.
@ -220,23 +218,26 @@ config SYSLOG_RPMSG
bool "Log to RPMSG" bool "Log to RPMSG"
depends on OPENAMP depends on OPENAMP
depends on SCHED_WORKQUEUE depends on SCHED_WORKQUEUE
default n
---help--- ---help---
Use the rpmsg as a SYSLOG output device, send message to remote proc. Use the rpmsg as a SYSLOG output device, send message to remote proc.
config SYSLOG_RPMSG_SERVER_NAME
string "The name of Syslog Rpmsg Server"
depends on SYSLOG_RPMSG
---help---
The proc name of rpmsg server. Client sends message to
specified name of remote proc.
config SYSLOG_DEFAULT config SYSLOG_DEFAULT
bool "Default SYSLOG device" bool "Default SYSLOG device"
default ARCH_LOWPUTC && !SYSLOG_RPMSG && !SYSLOG_CONSOLE && !RAMLOG_SYSLOG && !SYSLOG_CHAR
---help--- ---help---
syslog() interfaces will be present, but all output will go to the syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n). up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
endchoice endif
config SYSLOG_RPMSG_SERVER_NAME
string "The name of Syslog Rpmsg Server"
depends on SYSLOG_RPMSG
default ""
---help---
The proc name of rpmsg server. Client sends message to
specified name of remote proc.
config SYSLOG_RPMSG_WORK_DELAY config SYSLOG_RPMSG_WORK_DELAY
int "SYSLOG RPMSG work delay(ms)" int "SYSLOG RPMSG work delay(ms)"