Modify touchscreen class compilation errors on V(CR).

1. TOP -> ANDROID_BUILD_TOP to solve the error that the .h file cannot
be found.
2. touchscreen_class depended on sensors_class module symbol, so it must
define the dependency in makefile.

Change-Id: Ibdc7a761b1cdce2678375719f0fe34748639f8fc
Reviewed-on: https://gerrit.mot.com/1718150
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2020-08-19 11:26:42 +08:00 • committed by litong20
commit fbe4fb48e4
2 changed files with 2 additions and 1 deletions

View file

@ -17,4 +17,5 @@ include $(CLEAR_VARS)
LOCAL_MODULE := touchscreen_mmi.ko
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/sensors_class.ko
include $(DLKM_DIR)/AndroidKernelModule.mk

View file

@ -1,6 +1,6 @@
# add -Wall to try to catch everything we can.
EXTRA_CFLAGS += -Wall
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
ifneq ($(filter m y, $(CONFIG_PANEL_NOTIFICATIONS)),)
EXTRA_CFLAGS += -DCONFIG_PANEL_NOTIFICATIONS