ctwo: solve tof compile issue

Details:
The flag -Wno-unused-but-set-variable will cause
8450 compile error, so add a macro to diff.

Change-Id: I1938183af983c9b29ff2489c647f30601d00649d
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2662655
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: <shihl5@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: <chenzm8@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wangdp11 committed 2023-07-03 22:11:08 -05:00
1 parent 0d7f3d6217
commit 1a41085023
2 files changed
+9 -1

No files matched your search

@@ -9,6 +9,10 @@ ifeq ($(PRODUCT_USE_PMIC_WL2864C),true)
KERNEL_CFLAGS += CONFIG_INPUT_MISC_PMIC_WL2864C=y
endif
ifeq ($(TOF_KERNEL_COMPILE_FIX),true)
KBUILD_OPTIONS += CONFIG_TOF_COMPILE_FIX=y
endif
include $(CLEAR_VARS)
LOCAL_MODULE := stmvl53l3.ko
LOCAL_MODULE_TAGS := optional
+5 -1
View File
@@ -2,7 +2,7 @@
# Kbuild for the vl53L1 drivers.
#
EXTRA_CFLAGS += -Wall -Wno-unused-but-set-variable
EXTRA_CFLAGS += -Wall
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/misc/vl53L1_14_1_2/inc \
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/misc/vl53L1_14_1_2/ipp \
@@ -48,4 +48,8 @@ endif
ifneq ($(filter m y,$(CONFIG_INPUT_MISC_PMIC_WL2864C)),)
EXTRA_CFLAGS += -DTOF_USE_PMIC_WL2864C
endif
ifneq ($(filter m y,$(CONFIG_TOF_COMPILE_FIX)),)
EXTRA_CFLAGS += -Wno-unused-but-set-variable
endif