Просмотр исходного кода

touch-drivers: Update hardcoded paths

Change the hardcoded path to store into a variable that can be
changed later according to the usage.

Change-Id: Ie404e26f7d5de986f589c21b988e07331d850093
Signed-off-by: Srikanth Katteboina <[email protected]>
Srikanth Katteboina 1 год назад
Родитель
Сommit
4c103f2d57
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      Android.mk

+ 5 - 3
Android.mk

@@ -9,7 +9,9 @@ endif
 
 ifeq ($(TOUCH_DLKM_ENABLE),  true)
        TOUCH_SELECT := CONFIG_MSM_TOUCH=m
-
+       BOARD_OPENSOURCE_DIR ?= vendor/qcom/opensource
+       BOARD_COMMON_DIR ?= device/qcom/common
+       
        LOCAL_PATH := $(call my-dir)
        ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
               LOCAL_MODULE_DDK_BUILD := true
@@ -29,10 +31,10 @@ ifeq ($(TOUCH_DLKM_ENABLE),  true)
        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)/device/qcom/common/dlkm
+       DLKM_DIR := $(TOP)/$(BOARD_COMMON_DIR)/dlkm
 
        LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)