2012-08-02 08:42:46 +08:00
|
|
|
############################################################################
|
|
|
|
# drivers/syslog/Make.defs
|
|
|
|
#
|
2021-03-04 14:10:42 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2012-08-02 08:42:46 +08:00
|
|
|
#
|
2021-03-04 14:10:42 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2012-08-02 08:42:46 +08:00
|
|
|
#
|
2021-03-04 14:10:42 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2012-08-02 08:42:46 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2016-03-18 04:45:35 +08:00
|
|
|
############################################################################
|
2016-06-19 02:54:55 +08:00
|
|
|
# Include SYSLOG Infrastructure
|
2012-08-02 08:42:46 +08:00
|
|
|
|
2021-05-17 22:38:22 +08:00
|
|
|
CSRCS += vsyslog.c syslog_stream.c syslog_channel.c
|
2017-05-11 04:42:43 +08:00
|
|
|
CSRCS += syslog_putc.c syslog_write.c syslog_force.c syslog_flush.c
|
2012-08-02 08:42:46 +08:00
|
|
|
|
2016-06-19 02:54:55 +08:00
|
|
|
ifeq ($(CONFIG_SYSLOG_INTBUFFER),y)
|
|
|
|
CSRCS += syslog_intbuffer.c
|
2012-08-02 08:42:46 +08:00
|
|
|
endif
|
|
|
|
|
2016-06-20 01:16:12 +08:00
|
|
|
ifneq ($(CONFIG_ARCH_SYSLOG),y)
|
|
|
|
CSRCS += syslog_initialize.c
|
|
|
|
endif
|
|
|
|
|
2016-06-19 22:46:46 +08:00
|
|
|
# The RAMLOG device is usable as a system logging device or standalone
|
2016-03-18 04:45:35 +08:00
|
|
|
|
2016-06-19 02:54:55 +08:00
|
|
|
ifeq ($(CONFIG_RAMLOG),y)
|
|
|
|
CSRCS += ramlog.c
|
2022-08-22 15:51:31 +08:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_RAMLOG_BUFFER_SECTION),"")
|
2022-11-01 21:47:53 +08:00
|
|
|
CFLAGS += ${DEFINE_PREFIX}RAMLOG_BUFFER_SECTION=CONFIG_RAMLOG_BUFFER_SECTION
|
2022-08-22 15:51:31 +08:00
|
|
|
endif
|
2016-06-19 22:46:46 +08:00
|
|
|
endif
|
2012-08-02 08:42:46 +08:00
|
|
|
|
2016-06-19 22:46:46 +08:00
|
|
|
############################################################################
|
|
|
|
# Include SYSLOG drivers (only one should be enabled)
|
|
|
|
|
|
|
|
# System logging to a character device (or file)
|
|
|
|
|
|
|
|
CSRCS += syslog_device.c
|
2016-06-20 03:03:20 +08:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SYSLOG_CHAR),y)
|
|
|
|
CSRCS += syslog_devchannel.c
|
|
|
|
endif
|
|
|
|
|
2016-06-22 02:25:15 +08:00
|
|
|
ifeq ($(CONFIG_SYSLOG_CONSOLE),y)
|
2016-06-20 03:03:20 +08:00
|
|
|
CSRCS += syslog_consolechannel.c
|
2016-06-19 22:46:46 +08:00
|
|
|
endif
|
2012-08-02 08:42:46 +08:00
|
|
|
|
2016-06-22 02:25:15 +08:00
|
|
|
ifeq ($(CONFIG_SYSLOG_FILE),y)
|
|
|
|
CSRCS += syslog_filechannel.c
|
|
|
|
endif
|
|
|
|
|
2016-07-06 02:58:18 +08:00
|
|
|
ifeq ($(CONFIG_SYSLOG_CHARDEV),y)
|
|
|
|
CSRCS += syslog_chardev.c
|
|
|
|
endif
|
2012-08-02 08:42:46 +08:00
|
|
|
|
2019-11-03 01:30:33 +08:00
|
|
|
ifeq ($(CONFIG_SYSLOG_RPMSG),y)
|
|
|
|
CSRCS += syslog_rpmsg.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SYSLOG_RPMSG_SERVER),y)
|
|
|
|
CSRCS += syslog_rpmsg_server.c
|
|
|
|
endif
|
|
|
|
|
2016-06-21 23:35:51 +08:00
|
|
|
ifeq ($(CONFIG_CONSOLE_SYSLOG),y)
|
2016-06-19 02:54:55 +08:00
|
|
|
CSRCS += syslog_console.c
|
|
|
|
endif
|
2016-03-18 04:45:35 +08:00
|
|
|
|
2016-06-21 23:35:51 +08:00
|
|
|
# (Add other SYSLOG drivers here)
|
2016-03-18 04:45:35 +08:00
|
|
|
|
2016-06-19 02:54:55 +08:00
|
|
|
# Include SYSLOG build support
|
2016-03-18 04:45:35 +08:00
|
|
|
|
|
|
|
DEPPATH += --dep-path syslog
|
|
|
|
VPATH += :syslog
|