2009-10-18 15:52:21 +02:00
|
|
|
############################################################################
|
|
|
|
# drivers/serial/Make.defs
|
|
|
|
#
|
2021-03-04 07:10:42 +01: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
|
2009-10-18 15:52:21 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2009-10-18 15:52:21 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01: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.
|
2009-10-18 15:52:21 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2011-05-16 17:09:39 +02:00
|
|
|
# Include serial drivers
|
|
|
|
|
2020-02-18 02:55:04 +01:00
|
|
|
CSRCS += serial.c serial_io.c
|
2015-11-15 14:58:08 +01:00
|
|
|
|
2019-04-24 20:11:40 +02:00
|
|
|
ifeq ($(CONFIG_SERIAL_RXDMA),y)
|
|
|
|
CSRCS += serial_dma.c
|
|
|
|
else ifeq ($(CONFIG_SERIAL_TXDMA),y)
|
2015-11-15 14:58:08 +01:00
|
|
|
CSRCS += serial_dma.c
|
|
|
|
endif
|
|
|
|
|
2011-03-10 05:13:44 +01:00
|
|
|
ifeq ($(CONFIG_16550_UART),y)
|
2011-05-16 17:09:39 +02:00
|
|
|
CSRCS += uart_16550.c
|
2011-03-10 05:13:44 +01:00
|
|
|
endif
|
2011-05-16 17:09:39 +02:00
|
|
|
|
2019-11-02 18:30:33 +01:00
|
|
|
ifeq ($(CONFIG_RPMSG_UART),y)
|
|
|
|
CSRCS += uart_rpmsg.c
|
|
|
|
endif
|
|
|
|
|
2016-07-15 14:48:10 +02:00
|
|
|
# Pseudo-terminal support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PSEUDOTERM),y)
|
|
|
|
CSRCS += pty.c
|
|
|
|
ifeq ($(CONFIG_PSEUDOTERM_SUSV1),y)
|
|
|
|
CSRCS += ptmx.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-05-25 15:57:41 +02:00
|
|
|
# Bluetooth H:4 UART driver
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_UART_BTH4),y)
|
|
|
|
CSRCS += uart_bth4.c
|
|
|
|
endif
|
|
|
|
|
2011-05-16 17:09:39 +02:00
|
|
|
# Include serial build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path serial
|
|
|
|
VPATH += :serial
|