mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Fix navigation function build issue
Only enable FPS_NAVI function if CONFIG_INPUT_EGISTEC_FPS_NAVI defined. if not defined, do not build ets_navi_input.c Change-Id: Ibd57c719cb33ad7254cb77272e4ac5ee7b8b664a Signed-off-by: haojl2 <haojl2@motorola.com> Reviewed-on: https://gerrit.mot.com/1339496 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1367086
This commit is contained in:
parent
73e64a0078
commit
a376df2ff9
3 changed files with 11 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ ETS_FPS_MMI_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|||
endif
|
||||
|
||||
ifeq ($(FPS_NAVI_ENABLE),true)
|
||||
KERNEL_CFLAGS += CONFIG_INPUT_EGISTEC_FPS_NAVI=y
|
||||
KERNEL_CFLAGS += CONFIG_INPUT_EGISTEC_FPS_NAVI_HORIZON=y
|
||||
KERNEL_CFLAGS += CONFIG_INPUT_EGISTEC_FPS_NAVI_VERTICAL=y
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -7,15 +7,18 @@ ifneq ($(filter m y,$(CONFIG_INPUT_EGISTEC_FPS_NAVI_HORIZON)),)
|
|||
EXTRA_CFLAGS += -DCONFIG_INPUT_EGISTEC_FPS_NAVI_HORIZON
|
||||
endif
|
||||
|
||||
ets_fps_mmi-y += ets_fps.o
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_EGISTEC_FPS_NAVI)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_EGISTEC_FPS_NAVI
|
||||
ets_fps_mmi-y += ets_navi_input.o
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_EGISTEC_FPS_NAVI_VERTICAL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_EGISTEC_FPS_NAVI_VERTICAL
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT),userdebug)
|
||||
EXTRA_CFLAGS += -DFP_SPI_DEBUG
|
||||
endif
|
||||
|
||||
ets_fps_mmi-y += ets_fps.o ets_navi_input.o
|
||||
|
||||
obj-m += ets_fps_mmi.o
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,11 @@
|
|||
#define EDGE_TRIGGER_RAISING 0x1
|
||||
#define LEVEL_TRIGGER_LOW 0x2
|
||||
#define LEVEL_TRIGGER_HIGH 0x3
|
||||
#ifdef CONFIG_INPUT_EGISTEC_FPS_NAVI
|
||||
#define EGIS_NAVI_INPUT 1 /* 1:open ; 0:close */
|
||||
#else
|
||||
#define EGIS_NAVI_INPUT 0
|
||||
#endif
|
||||
#ifdef CONFIG_HAS_WAKELOCK
|
||||
static struct wake_lock ets_wake_lock;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue