wlan: Decouple WLAN_BLD_DIR based on target
This commit introduces to decouple WLAN build Directory
based on sdm429w target and others target.
Change-Id: I504d8180b8dd46db3f32907be4d796a24f77de36
CRs-Fixed: 2730057
diff --git a/Kbuild b/Kbuild
index 25bcf52..cf403ba 100644
--- a/Kbuild
+++ b/Kbuild
@@ -106,8 +106,12 @@
endif # ANDROID_BUILD_TOP
else
ifneq ($(ANDROID_BUILD_TOP),)
+ifeq ($(TARGET_PRODUCT),sdm429w)
WLAN_BLD_DIR := $(ANDROID_BUILD_TOP)/device/qcom/sdm429w/common/opensource/wlan
else
+ WLAN_BLD_DIR := $(ANDROID_BUILD_TOP)/vendor/qcom/opensource/wlan
+endif #TARGET_PRODUCT
+else
WLAN_BLD_DIR := $(BOARD_OPENSOURCE_DIR)/wlan
endif # ANDROID_BUILD_TOP
endif # TARGET_SUPPORTS_WEARABLES