From efd0269fdefe6737fb1d3420aa5c5763f4a9ba12 Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Tue, 7 Apr 2020 11:42:41 -0700 Subject: [PATCH] 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 --- Kbuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kbuild b/Kbuild index 3a3769dbe159..3e51d64ce5e4 100644 --- a/Kbuild +++ b/Kbuild @@ -25,9 +25,9 @@ CONFIG_QCA_CLD_WLAN_PROFILE ?= $(WLAN_PROFILE) 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