mmi_info: use ANDROID_BUILD_TOP in Kbuild

fix the compile error during GKI kernel 5.4:
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_ram_info.c:17:10: fatal error: 'linux/mmi_annotate.h' file not found
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_storage_info.c:19:10: fatal error: 'linux/mmi_annotate.h' file not found
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_boot_info.c:31:10: fatal error: 'soc/qcom/mmi_boot_info.h' file not found

Change-Id: I1a8c6b103e6cb1c77df6a428154d47dfc74a734a
Reviewed-on: https://gerrit.mot.com/1707443
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xizx 2020-07-28 10:20:43 +08:00 • committed by Zhenxin Xi
commit 10565c3a46

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
mmi_info-objs += mmi_storage_info.o
mmi_info-objs += mmi_ram_info.o