From 0d007bf428adba134cfdc8e75e5807a07e5f67ff Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Thu, 30 Apr 2020 00:54:29 -0700 Subject: [PATCH] qcacld-3.0: remove realpath dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Android build system is using toybox “realpath” which doesn’t have “—relative-to” option as in GNU tools. Use more generic python API. Change-Id: Ib129bd721056e2fcb563817ac61cc6811568f68d CRs-Fixed: 2676451 --- Kbuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Kbuild b/Kbuild index 3e51d64ce5e4..4c3e07bd37e5 100644 --- a/Kbuild +++ b/Kbuild @@ -25,9 +25,10 @@ CONFIG_QCA_CLD_WLAN_PROFILE ?= $(WLAN_PROFILE) ifeq ($(KERNEL_BUILD), n) ifneq ($(ANDROID_BUILD_TOP),) - 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)) + ANDROID_BUILD_TOP_REL := $(shell python -c "import os.path; print(os.path.relpath('$(ANDROID_BUILD_TOP)'))") + override WLAN_ROOT := $(ANDROID_BUILD_TOP_REL)/$(WLAN_ROOT) + override WLAN_COMMON_INC := $(ANDROID_BUILD_TOP_REL)/$(WLAN_COMMON_INC) + override WLAN_FW_API := $(ANDROID_BUILD_TOP_REL)/$(WLAN_FW_API) endif endif