2009-10-18 21:52:21 +08:00
|
|
|
############################################################################
|
|
|
|
# drivers/serial/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
|
2009-10-18 21:52:21 +08:00
|
|
|
#
|
2021-03-04 14:10:42 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2009-10-18 21:52:21 +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.
|
2009-10-18 21:52:21 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2011-05-16 23:09:39 +08:00
|
|
|
# Include serial drivers
|
|
|
|
|
2020-02-18 09:55:04 +08:00
|
|
|
CSRCS += serial.c serial_io.c
|
2015-11-15 21:58:08 +08:00
|
|
|
|
2023-10-31 20:12:02 +08:00
|
|
|
ifeq ($(CONFIG_SERIAL_GDBSTUB),y)
|
|
|
|
CSRCS += serial_gdbstub.c
|
|
|
|
endif
|
|
|
|
|
2023-12-13 20:37:59 +08:00
|
|
|
ifeq ($(CONFIG_CMSDK_UART),y)
|
|
|
|
CSRCS += serial_cmsdk.c
|
|
|
|
endif
|
|
|
|
|
2019-04-25 02:11:40 +08:00
|
|
|
ifeq ($(CONFIG_SERIAL_RXDMA),y)
|
|
|
|
CSRCS += serial_dma.c
|
|
|
|
else ifeq ($(CONFIG_SERIAL_TXDMA),y)
|
2015-11-15 21:58:08 +08:00
|
|
|
CSRCS += serial_dma.c
|
|
|
|
endif
|
|
|
|
|
2011-03-10 12:13:44 +08:00
|
|
|
ifeq ($(CONFIG_16550_UART),y)
|
2011-05-16 23:09:39 +08:00
|
|
|
CSRCS += uart_16550.c
|
2011-03-10 12:13:44 +08:00
|
|
|
endif
|
2011-05-16 23:09:39 +08:00
|
|
|
|
2024-01-11 12:49:07 +08:00
|
|
|
ifeq ($(CONFIG_UART_PL011),y)
|
|
|
|
CSRCS += uart_pl011.c
|
|
|
|
endif
|
|
|
|
|
2019-11-03 01:30:33 +08:00
|
|
|
ifeq ($(CONFIG_RPMSG_UART),y)
|
|
|
|
CSRCS += uart_rpmsg.c
|
|
|
|
endif
|
|
|
|
|
2024-05-22 15:58:24 +08:00
|
|
|
ifeq ($(CONFIG_UART_HOSTFS),y)
|
|
|
|
CSRCS += uart_hostfs.c
|
|
|
|
endif
|
|
|
|
|
2016-07-15 20:48:10 +08:00
|
|
|
# Pseudo-terminal support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PSEUDOTERM),y)
|
|
|
|
CSRCS += pty.c
|
|
|
|
ifeq ($(CONFIG_PSEUDOTERM_SUSV1),y)
|
|
|
|
CSRCS += ptmx.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-05-25 21:57:41 +08:00
|
|
|
# Bluetooth H:4 UART driver
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_UART_BTH4),y)
|
|
|
|
CSRCS += uart_bth4.c
|
|
|
|
endif
|
|
|
|
|
2023-05-11 21:48:52 +08:00
|
|
|
# Bluetooth H:5 UART driver
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_UART_BTH5),y)
|
|
|
|
CSRCS += uart_bth5.c
|
|
|
|
endif
|
|
|
|
|
2023-08-21 11:33:01 +08:00
|
|
|
# RAM uart support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RAM_UART),y)
|
|
|
|
CSRCS += uart_ram.c
|
|
|
|
endif
|
2023-05-11 21:48:52 +08:00
|
|
|
|
2024-03-21 00:01:00 +08:00
|
|
|
# UART PCI drivers
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_16550_PCI_UART),y)
|
|
|
|
CSRCS += uart_pci_16550.c
|
|
|
|
endif
|
|
|
|
|
2011-05-16 23:09:39 +08:00
|
|
|
# Include serial build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path serial
|
|
|
|
VPATH += :serial
|