From 55e2add6656c1f2fb5c77a668586f82e03bc150b Mon Sep 17 00:00:00 2001 From: Ryan Lattrel Date: Tue, 20 Apr 2021 17:16:37 -0500 Subject: [PATCH] bq27426: Fix kbuild to use ANDROID_BUILD_TOP Use ANDROID_BUILD_TOP instead of TOP. TOP does not appear to work anymore. Change-Id: I9ca1f85ced505488c205078febf6d954aa7e9bc3 Signed-off-by: Ryan Lattrel Reviewed-on: https://gerrit.mot.com/1928666 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Jin Submit-Approved: Jira Key --- drivers/power/bq27426_fg_mmi/Kbuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/bq27426_fg_mmi/Kbuild b/drivers/power/bq27426_fg_mmi/Kbuild index 62de47407375..230c93456da9 100644 --- a/drivers/power/bq27426_fg_mmi/Kbuild +++ b/drivers/power/bq27426_fg_mmi/Kbuild @@ -1,7 +1,7 @@ # add -Wall to try to catch everything we can. EXTRA_CFLAGS += -Wall -EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include \ - -I$(TOP)/motorola/kernel/modules/drivers/power/bq27426_fg_mmi +EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \ + -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/power/bq27426_fg_mmi ifneq ($(filter m y,$(CONFIG_ATL_4000MAH_8A_BATTERY_PROFILE)),) EXTRA_CFLAGS += -DATL_4000MAH_8A_BATTERY_PROFILE