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
This commit is contained in:
Mahesh Kumar Kalikot Veetil 2020-04-07 11:42:41 -07:00 • committed by nshrivas
commit efd0269fde

6
Kbuild
View file

@ -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