qti_default.mk 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 = false
  28. TARGET_USE_QTI_BT_SAR_V1_1 = true
  29. TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
  30. # IBluetoothHci @1.1 / @1.0
  31. ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
  32. PRODUCT_PACKAGES += [email protected]
  33. else
  34. PRODUCT_PACKAGES += [email protected]
  35. endif
  36. # IBluetoothSar @1.1 / @1.0
  37. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true)
  38. PRODUCT_PACKAGES += [email protected]
  39. else ifeq ($(TARGET_USE_QTI_BT_SAR),true)
  40. PRODUCT_PACKAGES += [email protected]
  41. endif
  42. PRODUCT_PACKAGES += \
  43. [email protected] \
  44. [email protected]
  45. # Bluetooth SAR test tools
  46. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1)$(TARGET_USE_QTI_BT_SAR),true)
  47. PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test
  48. endif
  49. # Bluetooth (Vendor) SoC, BDA in device tree, and WiPower
  50. PRODUCT_PROPERTY_OVERRIDES += \
  51. vendor.qcom.bluetooth.soc=hastings \
  52. ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
  53. ro.vendor.bluetooth.emb_wp_mode=false \
  54. ro.vendor.bluetooth.wipower=false
  55. # Bluetooth A2DP offloading
  56. PRODUCT_PROPERTY_OVERRIDES += \
  57. ro.bluetooth.a2dp_offload.supported=true \
  58. persist.bluetooth.a2dp_offload.disabled=true \
  59. persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
  60. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  61. PRODUCT_PROPERTY_OVERRIDES += \
  62. persist.vendor.service.bdroid.soclog=true \
  63. persist.vendor.service.bdroid.fwsnoop=true
  64. else
  65. PRODUCT_PROPERTY_OVERRIDES += \
  66. persist.vendor.service.bdroid.soclog=false \
  67. persist.vendor.service.bdroid.fwsnoop=false
  68. endif