From 1fcdae1a83bfb9e33d6294b286d8e723ac55daf9 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Tue, 30 Aug 2022 15:52:39 +0800 Subject: [PATCH] DLKM/fpc:optimise build rule for FPC fps driver remove Macro control,use KBUILD_OPTIONS&KBUILD_CFLAGS solve issue that sys/class/fingerprint didn't work for mutil fps Change-Id: I877cb0c8dc7def47de4d793cd6b11e6ca8d96e85 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2374594 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: liujian Reviewed-by: Tao Sun Submit-Approved: Jira Key --- drivers/input/misc/fpc_fps_mmi/Android.mk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/input/misc/fpc_fps_mmi/Android.mk b/drivers/input/misc/fpc_fps_mmi/Android.mk index 9fa2aa8c0d6b..4936f13c6c34 100644 --- a/drivers/input/misc/fpc_fps_mmi/Android.mk +++ b/drivers/input/misc/fpc_fps_mmi/Android.mk @@ -2,11 +2,8 @@ DLKM_DIR := motorola/kernel/modules LOCAL_PATH := $(call my-dir) ifeq ($(BOARD_HAS_MULTI_FPS),true) - 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 + KBUILD_OPTIONS += CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y + KERNEL_CFLAGS += CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y endif include $(CLEAR_VARS)