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 <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong20 2021-09-24 15:05:58 +08:00 • committed by litong
commit 8fae36905f
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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