2018-03-30 02:36:03 +02:00
|
|
|
############################################################################
|
2021-03-08 22:29:12 +01:00
|
|
|
# drivers/wireless/bluetooth/Make.defs
|
2018-03-30 02:36:03 +02:00
|
|
|
#
|
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
|
2018-03-30 02:36:03 +02:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2018-03-30 02:36:03 +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.
|
2018-03-30 02:36:03 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Include nothing if Bluetooth is disabled
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_DRIVERS_BLUETOOTH),y)
|
|
|
|
|
|
|
|
# Include Bluetooth drivers into the build
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BLUETOOTH_UART),y)
|
|
|
|
CSRCS += bt_uart.c
|
2018-04-20 01:48:04 +02:00
|
|
|
ifeq ($(CONFIG_BLUETOOTH_UART_GENERIC),y)
|
|
|
|
CSRCS += bt_uart_generic.c
|
|
|
|
endif
|
2019-09-21 15:16:37 +02:00
|
|
|
ifeq ($(CONFIG_BLUETOOTH_UART_SHIM),y)
|
2019-10-04 17:29:51 +02:00
|
|
|
CSRCS += bt_uart_shim.c
|
2019-09-21 15:16:37 +02:00
|
|
|
endif
|
2018-12-11 13:58:31 +01:00
|
|
|
ifeq ($(CONFIG_BLUETOOTH_UART_CC2564),y)
|
|
|
|
CSRCS += bt_uart_cc2564.c
|
|
|
|
endif
|
2019-10-04 17:29:51 +02:00
|
|
|
ifeq ($(CONFIG_BLUETOOTH_BCM4343X),y)
|
|
|
|
CSRCS += bt_uart_bcm4343x.c
|
|
|
|
endif
|
2018-03-30 02:36:03 +02:00
|
|
|
endif
|
|
|
|
|
2018-04-03 17:00:18 +02:00
|
|
|
ifeq ($(CONFIG_BLUETOOTH_NULL),y)
|
|
|
|
CSRCS += bt_null.c
|
|
|
|
endif
|
|
|
|
|
2018-12-11 13:58:31 +01:00
|
|
|
# Include common Bluetooth driver build support
|
2018-03-30 02:36:03 +02:00
|
|
|
|
|
|
|
DEPPATH += --dep-path wireless$(DELIM)bluetooth
|
|
|
|
VPATH += :wireless$(DELIM)bluetooth
|
2020-03-26 04:51:22 +01:00
|
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)bluetooth}
|
2018-03-30 02:36:03 +02:00
|
|
|
|
|
|
|
endif # CONFIG_DRIVERS_BLUETOOTH
|