Cypfq: dlkm: Add GKI module dir definition

- Add GKI_OBJ_MODULE_DIR definition since on user build
the sensor_class.ko may not be found.
- Add dependency with sensor_class.ko.

Change-Id: I542f28633dfa52a283f9b363ad273b3f9e9385d9
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2028658
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wengjun1 2021-07-30 10:11:42 +08:00 • committed by Jun Weng
commit 60decaa7d5

View file

@ -36,7 +36,12 @@ ifeq ($(ILITEK_PANEL_GESTURE),true)
endif
include $(CLEAR_VARS)
ifneq ($(BOARD_USES_DOUBLE_TAP),)
LOCAL_ADDITIONAL_DEPENDENCIES += $(KERNEL_MODULES_OUT)/sensors_class.ko
endif
LOCAL_MODULE := ili9882_mmi.ko
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
KBUILD_OPTIONS_GKI += GKI_OBJ_MODULE_DIR=gki
KBUILD_OPTIONS_GKI += MODULE_KERNEL_VERSION=$(TARGET_KERNEL_VERSION)
include $(DLKM_DIR)/AndroidKernelModule.mk