qti_default.mk 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #
  2. # Copyright (C) 2021 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. # Bluetooth HAL and Pixel extension
  17. DEVICE_MANIFEST_FILE += \
  18. device/google/lynx/bluetooth/manifest_bluetooth.xml
  19. BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
  20. BOARD_HAVE_BLUETOOTH_QCOM = true
  21. BOARD_USES_COMMON_BLUETOOTH_HAL = true
  22. QCOM_BLUETOOTH_USING_DIAG = false
  23. TARGET_BLUETOOTH_HCI_V1_1 = true
  24. TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
  25. UART_USE_TERMIOS_AFC = true
  26. TARGET_USE_QTI_BT_IBS = false
  27. TARGET_USE_QTI_BT_OBS = true
  28. TARGET_USE_QTI_BT_SAR = true
  29. TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
  30. ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
  31. PRODUCT_PACKAGES += [email protected]
  32. else
  33. PRODUCT_PACKAGES += [email protected]
  34. endif
  35. PRODUCT_PACKAGES += \
  36. [email protected] \
  37. [email protected] \
  38. [email protected]
  39. # Bluetooth SAR test tools
  40. PRODUCT_PACKAGES_DEBUG += \
  41. bluetooth_sar_test
  42. # Bluetooth SoC, BDA in device tree, and WiPower
  43. PRODUCT_PROPERTY_OVERRIDES += \
  44. vendor.qcom.bluetooth.soc=hastings \
  45. ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
  46. ro.vendor.bluetooth.emb_wp_mode=false \
  47. ro.vendor.bluetooth.wipower=false
  48. # Bluetooth A2DP offloading
  49. PRODUCT_PROPERTY_OVERRIDES += \
  50. ro.bluetooth.a2dp_offload.supported=true \
  51. persist.bluetooth.a2dp_offload.disabled=true \
  52. persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
  53. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  54. PRODUCT_PROPERTY_OVERRIDES += \
  55. persist.vendor.service.bdroid.soclog=true \
  56. persist.vendor.service.bdroid.fwsnoop=true
  57. else
  58. PRODUCT_PROPERTY_OVERRIDES += \
  59. persist.vendor.service.bdroid.soclog=false \
  60. persist.vendor.service.bdroid.fwsnoop=false
  61. endif