syslog: set default value for SYSLOG_DEFAULT based on the usage of other syslog channels.

N/A

Change-Id: I702a7e3d4fee2f17419a8b7e184b2646b871b64a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2021-05-25 12:03:43 +08:00
parent 034fa07b2f
commit 78f4220106
+19 -19
View File
@@ -34,14 +34,6 @@ config RAMLOG
details as needed to support logging.
if RAMLOG
config RAMLOG_BUFFER_SECTION
string "The section where ramlog buffer is located"
default ".bss"
depends on RAMLOG_SYSLOG
---help---
The section where ramlog buffer is located, this section cannot
be initialized each time when the system boot.
config RAMLOG_BUFSIZE
int "RAMLOG buffer size"
default 1024
@@ -126,7 +118,7 @@ config SYSLOG_TIMESTAMP_FORMATTED
depends on SYSLOG_TIMESTAMP_REALTIME
---help---
Syslog timestamp will be formatted according to the
SYSLOG_TIMESTAMP_FORMAT format string.
SYSLOG_TIMESTAMP_FORMAT format string.
config SYSLOG_TIMESTAMP_LOCALTIME
bool "Use local-time timestamp"
@@ -207,7 +199,7 @@ config RAMLOG_SYSLOG
config SYSLOG_CONSOLE
bool "Log to /dev/console"
default !ARCH_LOWPUTC
default !ARCH_LOWPUTC && !SYSLOG_RPMSG && !RAMLOG_SYSLOG && !SYSLOG_CHAR
depends on DEV_CONSOLE
---help---
Use the system console as a SYSLOG output device.
@@ -219,6 +211,23 @@ config SYSLOG_RPMSG
---help---
Use the rpmsg as a SYSLOG output device, send message to remote proc.
config SYSLOG_DEFAULT
bool "Default SYSLOG device"
default ARCH_LOWPUTC && !SYSLOG_RPMSG && !SYSLOG_CONSOLE && !RAMLOG_SYSLOG && !SYSLOG_CHAR
---help---
syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
endif
config RAMLOG_BUFFER_SECTION
string "The section where ramlog buffer is located"
default ".bss"
depends on RAMLOG_SYSLOG
---help---
The section where ramlog buffer is located, this section cannot
be initialized each time when the system boot.
config SYSLOG_RPMSG_SERVER_NAME
string "The name of Syslog Rpmsg Server"
depends on SYSLOG_RPMSG
@@ -226,15 +235,6 @@ config SYSLOG_RPMSG_SERVER_NAME
The proc name of rpmsg server. Client sends message to
specified name of remote proc.
config SYSLOG_DEFAULT
bool "Default SYSLOG device"
default ARCH_LOWPUTC
---help---
syslog() interfaces will be present, but all output will go to the
up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
endif
config SYSLOG_RPMSG_WORK_DELAY
int "SYSLOG RPMSG work delay(ms)"
default 100