qcacld-3.0: Make absolute path to relative
Make include paths relative to kernel build directory. This will fix
the following error due to long absolute path in include directories,
make[2]: execvp: /bin/sh: Argument list too long
make[2]: *** [path/to/object/file] Error 127
Change-Id: Ic930384f38f2166e6bede8d16ac37b359dd48a0d
CRs-Fixed: 2661829
diff --git a/Kbuild b/Kbuild
index e69054e..ff8a57a 100644
--- a/Kbuild
+++ b/Kbuild
@@ -25,9 +25,9 @@
ifeq ($(KERNEL_BUILD), n)
ifneq ($(ANDROID_BUILD_TOP),)
- override WLAN_ROOT := $(ANDROID_BUILD_TOP)/$(WLAN_ROOT)
- override WLAN_COMMON_INC := $(ANDROID_BUILD_TOP)/$(WLAN_COMMON_INC)
- override WLAN_FW_API := $(ANDROID_BUILD_TOP)/$(WLAN_FW_API)
+ override WLAN_ROOT := $(shell realpath --relative-to $(CURDIR) $(ANDROID_BUILD_TOP)/$(WLAN_ROOT))
+ override WLAN_COMMON_INC := $(shell realpath --relative-to $(CURDIR) $(ANDROID_BUILD_TOP)/$(WLAN_COMMON_INC))
+ override WLAN_FW_API := $(shell realpath --relative-to $(CURDIR) $(ANDROID_BUILD_TOP)/$(WLAN_FW_API))
endif
endif