From 7ab54d7db0ecd6db83bc4188844b4c3c51287cd0 Mon Sep 17 00:00:00 2001 From: xizx Date: Mon, 27 Jul 2020 11:46:12 +0800 Subject: [PATCH] mmi_sys_temp: use ANDROID_BUILD_TOP in Kbuild fix the compile error during GKI kernel 5.4: /home/xizx/work/moto/8350/8350_mainline_0725/kernel/msm-5.4/../../motorola/kernel/modules/drivers/misc/mmi_sys_temp/mmi_sys_temp.c:21:10: fatal error: 'linux/mmi_sys_temp.h' file not found Change-Id: I67ff6dd7f3dcbc2e5fd58ab7f10524b2ce282792 Reviewed-on: https://gerrit.mot.com/1706403 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- drivers/misc/mmi_sys_temp/Kbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mmi_sys_temp/Kbuild b/drivers/misc/mmi_sys_temp/Kbuild index 58b7fcccf51f..d676833a3d63 100644 --- a/drivers/misc/mmi_sys_temp/Kbuild +++ b/drivers/misc/mmi_sys_temp/Kbuild @@ -1,5 +1,5 @@ # 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 obj-m += mmi_sys_temp.o