2012-08-02 02:42:46 +02:00
|
|
|
############################################################################
|
|
|
|
# drivers/syslog/Make.defs
|
|
|
|
# These drivers support system logging devices
|
|
|
|
#
|
2016-06-19 15:56:24 +02:00
|
|
|
# Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
|
2012-08-02 02:42:46 +02:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2016-03-17 21:45:35 +01:00
|
|
|
############################################################################
|
2016-06-18 20:54:55 +02:00
|
|
|
# Include SYSLOG Infrastructure
|
2012-08-02 02:42:46 +02:00
|
|
|
|
2016-06-21 01:10:52 +02:00
|
|
|
CSRCS += vsyslog.c syslog_stream.c syslog_emergstream.c syslog_channel.c
|
2017-05-10 22:42:43 +02:00
|
|
|
CSRCS += syslog_putc.c syslog_write.c syslog_force.c syslog_flush.c
|
2012-08-02 02:42:46 +02:00
|
|
|
|
2016-06-18 20:54:55 +02:00
|
|
|
ifeq ($(CONFIG_SYSLOG_INTBUFFER),y)
|
|
|
|
CSRCS += syslog_intbuffer.c
|
2012-08-02 02:42:46 +02:00
|
|
|
endif
|
|
|
|
|
2016-06-19 19:16:12 +02:00
|
|
|
ifneq ($(CONFIG_ARCH_SYSLOG),y)
|
|
|
|
CSRCS += syslog_initialize.c
|
|
|
|
endif
|
|
|
|
|
2016-06-19 16:46:46 +02:00
|
|
|
# The RAMLOG device is usable as a system logging device or standalone
|
2016-03-17 21:45:35 +01:00
|
|
|
|
2016-06-18 20:54:55 +02:00
|
|
|
ifeq ($(CONFIG_RAMLOG),y)
|
|
|
|
CSRCS += ramlog.c
|
2016-06-19 16:46:46 +02:00
|
|
|
endif
|
2012-08-02 02:42:46 +02:00
|
|
|
|
2016-06-19 16:46:46 +02:00
|
|
|
############################################################################
|
|
|
|
# Include SYSLOG drivers (only one should be enabled)
|
|
|
|
|
|
|
|
# System logging to a character device (or file)
|
|
|
|
|
|
|
|
CSRCS += syslog_device.c
|
2016-06-19 21:03:20 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SYSLOG_CHAR),y)
|
|
|
|
CSRCS += syslog_devchannel.c
|
|
|
|
endif
|
|
|
|
|
2016-06-21 20:25:15 +02:00
|
|
|
ifeq ($(CONFIG_SYSLOG_CONSOLE),y)
|
2016-06-19 21:03:20 +02:00
|
|
|
CSRCS += syslog_consolechannel.c
|
2016-06-19 16:46:46 +02:00
|
|
|
endif
|
2012-08-02 02:42:46 +02:00
|
|
|
|
2016-06-21 20:25:15 +02:00
|
|
|
ifeq ($(CONFIG_SYSLOG_FILE),y)
|
|
|
|
CSRCS += syslog_filechannel.c
|
|
|
|
endif
|
|
|
|
|
2016-07-05 20:58:18 +02:00
|
|
|
ifeq ($(CONFIG_SYSLOG_CHARDEV),y)
|
|
|
|
CSRCS += syslog_chardev.c
|
|
|
|
endif
|
2012-08-02 02:42:46 +02:00
|
|
|
|
2019-11-02 18:30:33 +01: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 17:35:51 +02:00
|
|
|
ifeq ($(CONFIG_CONSOLE_SYSLOG),y)
|
2016-06-18 20:54:55 +02:00
|
|
|
CSRCS += syslog_console.c
|
|
|
|
endif
|
2016-03-17 21:45:35 +01:00
|
|
|
|
2016-06-21 17:35:51 +02:00
|
|
|
# (Add other SYSLOG drivers here)
|
2016-03-17 21:45:35 +01:00
|
|
|
|
2016-06-18 20:54:55 +02:00
|
|
|
# Include SYSLOG build support
|
2016-03-17 21:45:35 +01:00
|
|
|
|
|
|
|
DEPPATH += --dep-path syslog
|
|
|
|
VPATH += :syslog
|