• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
30ifneq ($(LOCAL_USE_VENDOR_AUDIO_CONFIGURATION),true)
31PRODUCT_COPY_FILES += \
32    frameworks/av/services/audiopolicy/config/bluetooth_with_le_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_with_le_audio_policy_configuration_7_0.xml
33endif
34
35PRODUCT_PACKAGES += com.google.cf.bt
36
37else # BOARD_HAVE_BLUETOOTH == true
38
39PRODUCT_COPY_FILES += \
40    device/google/cuttlefish/shared/bluetooth/excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/bluetooth_excluded_hardware.xml \
41
42endif # BOARD_HAVE_BLUETOOTH == true
43