summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorPrashanth Bhatta <bhattap@qca.qualcomm.com>2014-01-28 14:16:54 -0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-02-07 17:38:19 -0800
commit61cd4b514283a70f85641ea54a089b3c9b71607e (patch)
tree0a77648b920e7feac49b8bd3e9af6ae357c42cdb /Kbuild
parentca220fab78f3c75cb3f2d8e85daccb7c173dfadb (diff)
qcacld: Define open source flag based on license
Kbuild file enables WLAN_OPEN_SOURCE flag based on the directory path but this doesn't work for all the platform as path may be different. This change passes the WLAN_OPEN_SOURCE flag from Android.mk or Makefile. Makefile determines whether the driver is open source or proprietary and accordingly WLAN_OPEN_SOURCE is set to 1 or 0. Change-Id: Id0149f71ceb3e94bd1a67868565cd3b8151bdd7d
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild15
1 files changed, 6 insertions, 9 deletions
diff --git a/Kbuild b/Kbuild
index 7742ef25a445..1bc81b1042b4 100644
--- a/Kbuild
+++ b/Kbuild
@@ -1,5 +1,5 @@
-# We can build either as part of a standalone Kernel build or part
-# of an Android build. Determine which mechanism is being used
+# We can build either as part of a standalone Kernel build or as
+# an external module. Determine which mechanism is being used
ifeq ($(MODNAME),)
KERNEL_BUILD := 1
else
@@ -7,10 +7,11 @@ else
endif
ifeq ($(KERNEL_BUILD),1)
- # These are provided in Android-based builds
+ # These are provided in external module based builds
# Need to explicitly define for Kernel-based builds
MODNAME := wlan
- WLAN_ROOT := drivers/staging/prima
+ WLAN_ROOT := drivers/staging/qcacld-2.0
+ WLAN_OPEN_SOURCE := 1
endif
ifeq ($(KERNEL_BUILD), 0)
@@ -972,11 +973,7 @@ ifeq ($(RE_ENABLE_WIFI_ON_WDI_TIMEOUT),1)
CDEFINES += -DWDI_RE_ENABLE_WIFI_ON_WDI_TIMEOUT
endif
-ifeq ($(KERNEL_BUILD),1)
-CDEFINES += -DWLAN_OPEN_SOURCE
-endif
-
-ifeq ($(findstring opensource, $(WLAN_ROOT)), opensource)
+ifeq ($(WLAN_OPEN_SOURCE), 1)
CDEFINES += -DWLAN_OPEN_SOURCE
endif