1#
2# Copyright (C) 2023 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17BOARD_HAVE_BLUETOOTH ?= true
18
19ifeq ($(BOARD_HAVE_BLUETOOTH), true)
20
21# If a downstream target does not want any bluetooth support, do not
22# include this file!
23
24LOCAL_BT_PROPERTIES ?= \
25    vendor.ser.bt-uart?=/dev/hvc5 \
26
27PRODUCT_VENDOR_PROPERTIES += \
28    ${LOCAL_BT_PROPERTIES} \
29
30PRODUCT_COPY_FILES += \
31    frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \
32
33PRODUCT_PACKAGES += com.google.cf.bt
34
35else # BOARD_HAVE_BLUETOOTH == true
36
37PRODUCT_COPY_FILES += \
38    device/google/cuttlefish/shared/bluetooth/excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/bluetooth_excluded_hardware.xml \
39
40endif # BOARD_HAVE_BLUETOOTH == true
41