summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorSameer Thalappil <sameert@codeaurora.org>2017-04-04 16:18:59 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-04-08 16:22:10 -0700
commitc174d899889967957cbb596e0a07a89924c079a0 (patch)
tree47c53a77bdce4dda3c906711b84d77c09e8da38a /Android.mk
parent4ee4820bc421cfeda8d37c4c9df37a5a30524e4b (diff)
downloadqcacld-c174d899889967957cbb596e0a07a89924c079a0.tar.gz
qcacld-3.0: Use absolute path for header files
Pass absolute path from Android.mk to reference driver header files. CRs-Fixed: 2029635 Change-Id: I20885ec6b2f60270a9626d7d4cf465ff72c5f2cc
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk22
1 files changed, 4 insertions, 18 deletions
diff --git a/Android.mk b/Android.mk
index 976634b454..5b1eb64606 100644
--- a/Android.mk
+++ b/Android.mk
@@ -14,27 +14,13 @@ endif
# Build/Package only in case of supported target
ifneq ($(WLAN_CHIPSET),)
-# If kernel version is not defined, using default kernel path, otherwise
-# kernel path offset should come from top level Android makefiles.
-ifeq ($(TARGET_KERNEL_VERSION),)
-$(info "$(WLAN_CHIPSET): TARGET_KERNEL_VERSION not defined, assuming default")
-TARGET_KERNEL_SOURCE := kernel
-KERNEL_TO_BUILD_ROOT_OFFSET := ../
-endif
-
-# If kernel path offset is not defined, assume old kernel structure
-ifeq ($(KERNEL_TO_BUILD_ROOT_OFFSET),)
-$(info "$(WLAN_CHIPSET): KERNEL_TO_BUILD_ROOT_OFFSET not defined, assuming default")
-KERNEL_TO_BUILD_ROOT_OFFSET := ../
-endif
-
LOCAL_PATH := $(call my-dir)
# This makefile is only for DLKM
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
ifneq ($(findstring opensource,$(LOCAL_PATH)),)
- WLAN_BLD_DIR := vendor/qcom/opensource/wlan
+ WLAN_BLD_DIR := $(ANDROID_BUILD_TOP)/vendor/qcom/opensource/wlan
endif # opensource
# DLKM_DIR was moved for JELLY_BEAN (PLATFORM_SDK 16)
@@ -47,10 +33,10 @@ endif # platform-sdk-version
# Build wlan.ko as $(WLAN_CHIPSET)_wlan.ko
###########################################################
# This is set once per LOCAL_PATH, not per (kernel) module
-KBUILD_OPTIONS := WLAN_ROOT=$(KERNEL_TO_BUILD_ROOT_OFFSET)$(WLAN_BLD_DIR)/qcacld-3.0
+KBUILD_OPTIONS := WLAN_ROOT=$(WLAN_BLD_DIR)/qcacld-3.0
KBUILD_OPTIONS += WLAN_COMMON_ROOT=../qca-wifi-host-cmn
-KBUILD_OPTIONS += WLAN_COMMON_INC=$(KERNEL_TO_BUILD_ROOT_OFFSET)$(WLAN_BLD_DIR)/qca-wifi-host-cmn
-KBUILD_OPTIONS += WLAN_FW_INC=$(KERNEL_TO_BUILD_ROOT_OFFSET)$(WLAN_BLD_DIR)/fw-api
+KBUILD_OPTIONS += WLAN_COMMON_INC=$(WLAN_BLD_DIR)/qca-wifi-host-cmn
+KBUILD_OPTIONS += WLAN_FW_INC=$(WLAN_BLD_DIR)/fw-api
# We are actually building wlan.ko here, as per the
# requirement we are specifying <chipset>_wlan.ko as LOCAL_MODULE.