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:
parent
ab4d72756e
commit
db5320fd9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user