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 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2374594
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenlj2 2022-08-30 15:52:39 +08:00 • committed by Lijun Chen
commit 1fcdae1a83

View file

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