config: Setup soong namespaces for TARGET_USE_QTI_BT_STACK
To opt-in for QTI BT addons, enable TARGET_USE_QTI_BT_STACK in BoardConfig.mk
Reference: [https://github.com/LineageOS/android_vendor_qcom_opensource_bluetooth-commonsys-intf/blob/lineage-18.0/bt-system-opensource-product.mk]
Change-Id: I6bf3e1dda6fe5dc66f6fafdb32a1daecb9616c84
diff --git a/config/BoardConfigQcom.mk b/config/BoardConfigQcom.mk
index ee34755..0873fa0 100644
--- a/config/BoardConfigQcom.mk
+++ b/config/BoardConfigQcom.mk
@@ -101,3 +101,9 @@
ifneq ($(USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR),true)
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/data-ipa-cfg-mgr
endif
+
+ifeq ($(TARGET_USE_QTI_BT_STACK),true)
+PRODUCT_SOONG_NAMESPACES += \
+ vendor/qcom/opensource/commonsys/packages/apps/Bluetooth \
+ vendor/qcom/opensource/commonsys/system/bt/conf
+endif #TARGET_USE_QTI_BT_STACK
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 075cd6c..d8fd984 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -94,3 +94,7 @@
ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
SOONG_CONFIG_blissQcomVars_qcom_soong_namespace := $(QCOM_SOONG_NAMESPACE)
endif
+
+ifneq ($(TARGET_USE_QTI_BT_STACK),true)
+PRODUCT_SOONG_NAMESPACES += packages/apps/Bluetooth
+endif #TARGET_USE_QTI_BT_STACK