Browse Source

qcacld-3.0: Kbuild: Cleanly featurize legacy WiFi positioning

Define a separate configuration option for legacy WiFi positioning and
use that option to set the associated ccflags macro.

Change-Id: I43cc04b3730687bf6298c66af7c42a9d6d9db80c
CRs-Fixed: 2224809
Jeff Johnson 7 years ago
parent
commit
e16768476a
1 changed files with 5 additions and 10 deletions
  1. 5 10
      Kbuild

+ 5 - 10
Kbuild

@@ -485,6 +485,9 @@ CONFIG_WLAN_FEATURE_P2P_DEBUG := y
 CONFIG_WLAN_NUD_TRACKING := y
 
 CONFIG_WIFI_POS_CONVERGED := y
+ifneq ($(CONFIG_WIFI_POS_CONVERGED), y)
+CONFIG_WIFI_POS_LEGACY := y
+endif
 
 CONFIG_CP_STATS := y
 
@@ -1968,16 +1971,8 @@ ccflags-$(CONFIG_WLAN_SPECTRAL_ENABLE) += -DWLAN_SPECTRAL_ENABLE
 ccflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
 
 ccflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
-
-############ WIFI POS ##############
-ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
-ccflags-y += -DWIFI_POS_CONVERGED
-else
-ccflags-y += -DFEATURE_OEM_DATA_SUPPORT
-endif
-####################################
-
-
+ccflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
+ccflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
 ccflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
 ccflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG