summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshok Lachanolla <quic_alachano@quicinc.com>2022-12-06 14:35:51 +0530
committerAshok Lachanolla <quic_alachano@quicinc.com>2022-12-06 14:35:51 +0530
commit1752e485098ab713433e219119044b0634dc3372 (patch)
tree482070d0e2597175dbc9becb7fbbb07f2e0cef72
parenta25b5c7cdc58503c51345a06629df5d7e4ef1e6f (diff)
downloadtouch-1752e485098ab713433e219119044b0634dc3372.tar.gz
touch-drivers: Updated hardcoded path with a macro
Change-Id: Ie6903bf65f98cc5f7b3e8ab55412803400c93c46 Signed-off-by: Ashok Lachanolla <quic_alachano@quicinc.com>
-rw-r--r--Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index fd9b3e8..1403908 100644
--- a/Android.mk
+++ b/Android.mk
@@ -13,11 +13,13 @@ ifeq ($(TOUCH_DLKM_ENABLE), true)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
+ BOARD_OPENSOURCE_DIR ?= vendor/qcom/opensource
+
# This makefile is only for DLKM
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
ifneq ($(findstring opensource,$(LOCAL_PATH)),)
- TOUCH_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/touch-drivers
+ TOUCH_BLD_DIR := $(shell pwd)/$(BOARD_OPENSOURCE_DIR)/touch-drivers
endif # opensource
DLKM_DIR := $(TOP)/$(BOARD_COMMON_DIR)/dlkm