summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Liu <kaliu@codeaurora.org>2017-03-16 09:08:58 +0800
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-20 21:15:31 -0700
commit8f6821669a0da2da4df59edb2be556b95caa0821 (patch)
treeb261a1537b2bf9e0fe292e91b2fbe8bcc3642651
parente183d78a042a93e06312015511ed7402874c8d98 (diff)
qcacld-3.0: Enable feature WLAN_DISABLE_EXPORT_SYMBOL for SDXHEDGEHOG
SDXHEDGEHOG needs support two drivers which will be built from same source code, so disable export symbol to avoid the error of duplicate symbol when loading the second driver. Change-Id: Iafb825ecf50c6a185f130bd791d7592c34789396 CRs-Fixed: 2020215
-rw-r--r--Kbuild12
1 files changed, 12 insertions, 0 deletions
diff --git a/Kbuild b/Kbuild
index 9c3a6b77d529..344231b5ec67 100644
--- a/Kbuild
+++ b/Kbuild
@@ -53,6 +53,14 @@ ifeq ($(KERNEL_BUILD), 0)
CONFIG_MOBILE_ROUTER := y
endif
+ # If platform wants to support two driver base on this source
+ # code, below feature WLAN_DISABLE_EXPORT_SYMBOL needs to be
+ # enabled, otherwise when loading the second the driver,
+ # it will hit error of duplicate symbol.
+ ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
+ CONFIG_WLAN_DISABLE_EXPORT_SYMBOL := y
+ endif
+
# As per target team, build is done as follows:
# Defconfig : build with default flags
# Slub : defconfig + CONFIG_SLUB_DEBUG=y +
@@ -1617,6 +1625,10 @@ ifeq ($(CONFIG_MOBILE_ROUTER), y)
CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
endif
+ifeq ($(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL), y)
+CDEFINES += -DWLAN_DISABLE_EXPORT_SYMBOL
+endif
+
ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
CDEFINES += -DMPC_UT_FRAMEWORK
endif