mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
drivers/syslog: compile syslog_device.c if console/char/file channel enabled
Add conditional compilation to syslog_device.c Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -41,7 +41,11 @@ endif()
|
||||
|
||||
# System logging to a character device (or file)
|
||||
|
||||
list(APPEND SRCS syslog_device.c)
|
||||
if(CONFIG_SYSLOG_CONSOLE
|
||||
OR CONFIG_SYSLOG_CHAR
|
||||
OR CONFIG_SYSLOG_FILE)
|
||||
list(APPEND SRCS syslog_device.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SYSLOG_CHAR)
|
||||
list(APPEND SRCS syslog_devchannel.c)
|
||||
|
||||
@@ -47,7 +47,9 @@ endif
|
||||
|
||||
# System logging to a character device (or file)
|
||||
|
||||
ifneq ($(CONFIG_SYSLOG_CONSOLE)$(CONFIG_SYSLOG_CHAR)$(CONFIG_SYSLOG_FILE),)
|
||||
CSRCS += syslog_device.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SYSLOG_CHAR),y)
|
||||
CSRCS += syslog_devchannel.c
|
||||
|
||||
Reference in New Issue
Block a user