From 9c4c1531fffab17357e276b92e3fa037415d5a56 Mon Sep 17 00:00:00 2001 From: Komal Maheshwari Date: Fri, 20 Aug 2021 22:16:58 +0530 Subject: [PATCH] rmnet_shs: compilation fix for ks sync path Change-Id: Ie8b28f059351771cec880da3678b9acd7d6cd30d --- shs/Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shs/Android.mk b/shs/Android.mk index 09ca5f45369e..5892589529ed 100644 --- a/shs/Android.mk +++ b/shs/Android.mk @@ -7,6 +7,10 @@ ifeq ($(call is-board-platform-in-list, $(RMNET_SHS_DLKM_PLATFORMS_LIST)),true) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +ifeq ($(BOARD_COMMON_DIR),) + BOARD_COMMON_DIR := device/qcom/common +endif + LOCAL_CFLAGS := -Wno-macro-redefined -Wno-unused-function -Wall -Werror LOCAL_CLANG :=true @@ -25,7 +29,7 @@ LOCAL_SRC_FILES := \ #path from build top to the core directory RMNET_CORE_PATH := vendor/qcom/opensource/datarmnet/core -DLKM_DIR := $(TOP)/device/qcom/common/dlkm +DLKM_DIR := $(TOP)/$(BOARD_COMMON_DIR)/dlkm #absolute path to the build directory. Can't use $(TOP) here since #that resolves to ., and we pass this to Kbuild, where . is different RMNET_CORE_INC_DIR := $(shell pwd)/$(RMNET_CORE_PATH)