From 986fcec74a3cf8890e4e06c3e10af5c7758600c5 Mon Sep 17 00:00:00 2001 From: daiss1 Date: Wed, 21 Jul 2021 11:43:28 +0800 Subject: [PATCH] FPS: Support multi-fingerprint function. Support multi-fingerprint function. Compatible with android S compilation method. Change-Id: I051838c9bbfadf2de488816169425ea11bb56d68 Signed-off-by: daiss1 Reviewed-on: https://gerrit.mot.com/2019759 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiuliang Cheng Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- drivers/input/misc/fpc_fps_mmi/Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/misc/fpc_fps_mmi/Android.mk b/drivers/input/misc/fpc_fps_mmi/Android.mk index ca96d7865c15..9fa2aa8c0d6b 100644 --- a/drivers/input/misc/fpc_fps_mmi/Android.mk +++ b/drivers/input/misc/fpc_fps_mmi/Android.mk @@ -2,7 +2,11 @@ DLKM_DIR := motorola/kernel/modules LOCAL_PATH := $(call my-dir) ifeq ($(BOARD_HAS_MULTI_FPS),true) - KERNEL_CFLAGS += CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y + ifneq ($(KERNEL_CFLAGS),) + KERNEL_CFLAGS += CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y + else + KBUILD_OPTIONS += CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y + endif endif include $(CLEAR_VARS)