From 8fae36905f0a0660e8715f91067eeb801a9205df Mon Sep 17 00:00:00 2001 From: litong20 Date: Fri, 24 Sep 2021 15:05:58 +0800 Subject: [PATCH] Only save test file in factory build TP The kernel_write is not in google white list, and we only need the test data saved during the factory build. Change-Id: Iad0cb0a32902af116425ef26d53397d53973f7db Reviewed-on: https://gerrit.mot.com/2075505 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- drivers/input/touchscreen/goodix_berlin_mmi/Android.mk | 4 ++-- drivers/input/touchscreen/goodix_berlin_mmi/Kbuild | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/Android.mk b/drivers/input/touchscreen/goodix_berlin_mmi/Android.mk index 9c7f9e2571e7..dcb638d06085 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/Android.mk +++ b/drivers/input/touchscreen/goodix_berlin_mmi/Android.mk @@ -9,8 +9,8 @@ ifeq ($(GTP_LIMIT_USE_SUPPLIER),true) KBUILD_OPTIONS += CONFIG_GTP_LIMIT_USE_SUPPLIER=y endif -ifneq (,$(findstring gki, $(KERNEL_DEFCONFIG))) - KBUILD_OPTIONS += CONFIG_TS_KERNEL_USE_GKI=y +ifeq ($(findstring factory, $(TARGET_PRODUCT)), factory) + KBUILD_OPTIONS += CONFIG_TARGET_BUILD_FACROTY=y endif include $(CLEAR_VARS) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/Kbuild b/drivers/input/touchscreen/goodix_berlin_mmi/Kbuild index 5e33ac3bf9a9..e6ab8992dcc1 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/Kbuild +++ b/drivers/input/touchscreen/goodix_berlin_mmi/Kbuild @@ -24,7 +24,7 @@ ifneq ($(filter m y,$(CONFIG_GTP_LIMIT_USE_SUPPLIER)),) EXTRA_CFLAGS += -DCONFIG_GTP_LIMIT_USE_SUPPLIER endif -ifeq ($(filter m y,$(CONFIG_TS_KERNEL_USE_GKI)),) +ifneq ($(filter m y,$(CONFIG_TARGET_BUILD_FACROTY)),) EXTRA_CFLAGS += -DGTP_SAVE_IN_CSV endif