ソースを参照

BluetoothSar: Support SAR version 1.1

Add build flag: TARGET_USE_QTI_BT_SAR_V1_1 to control IBluetoothSar @1.1

Bug: 203055537
Test: bluetooth_sar_test
Change-Id: I81f79d08ad92d2b393d438739640f051e94d0426
Cheney Ni 2 年 前
コミット
31019e12e1
1 ファイル変更13 行追加5 行削除
  1. 13 5
      bluetooth/qti_default.mk

+ 13 - 5
bluetooth/qti_default.mk

@@ -28,23 +28,31 @@ TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
 UART_USE_TERMIOS_AFC = true
 TARGET_USE_QTI_BT_IBS = false
 TARGET_USE_QTI_BT_OBS = false
-TARGET_USE_QTI_BT_SAR = true
+TARGET_USE_QTI_BT_SAR_V1_1 = true
 TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
+
+# IBluetoothHci @1.1 / @1.0
 ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
    PRODUCT_PACKAGES += [email protected]
 else
    PRODUCT_PACKAGES += [email protected]
 endif
+# IBluetoothSar @1.1 / @1.0
+ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true)
+   PRODUCT_PACKAGES += [email protected]
+else ifeq ($(TARGET_USE_QTI_BT_SAR),true)
+   PRODUCT_PACKAGES += [email protected]
+endif
 PRODUCT_PACKAGES += \
 	[email protected] \
-	[email protected] \
 	[email protected]
 
 # Bluetooth SAR test tools
-PRODUCT_PACKAGES_DEBUG += \
-	bluetooth_sar_test
+ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1)$(TARGET_USE_QTI_BT_SAR),true)
+   PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test
+endif
 
-# Bluetooth SoC, BDA in device tree, and WiPower
+# Bluetooth (Vendor) SoC, BDA in device tree, and WiPower
 PRODUCT_PROPERTY_OVERRIDES += \
 	vendor.qcom.bluetooth.soc=hastings \
 	ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \