wcnss_service: Conditionally build the binary
In order to avoid proprietary dependency, the binary
shall be used as a prebuilt for now.
It can still be built from source by enabling the flag.
Issue: FP3-A11#226
Change-Id: Ia8a16a7883d3f919cabac1599a2cf94016b15a43
diff --git a/wcnss-service/Android.mk b/wcnss-service/Android.mk
index a779b70..be65d2e 100644
--- a/wcnss-service/Android.mk
+++ b/wcnss-service/Android.mk
@@ -1,3 +1,5 @@
+ifeq ($(TARGET_USE_WCNSS_HAL),true)
+
ifneq (,$(filter arm aarch64 arm64, $(TARGET_ARCH)))
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
@@ -26,3 +28,5 @@
LOCAL_CFLAGS += -Wall -Werror
include $(BUILD_EXECUTABLE)
endif
+
+endif