treewide: Setup inline build for moto bengal/rhode modules
Change-Id: Ic323acad308e7579ab44497cce33d9735bcb9409
This commit is contained in:
13 files changed
+172
-268
No files matched your search
@@ -887,6 +887,7 @@ config INPUT_SC27XX_VIBRA
|
||||
|
||||
source "drivers/input/misc/ets_bix_mmi/Kconfig"
|
||||
source "drivers/input/misc/ets_fps_mmi/Kconfig"
|
||||
source "drivers/input/misc/focal_fps_mmi/Kconfig"
|
||||
source "drivers/input/misc/fpc_fps_mmi/Kconfig"
|
||||
source "drivers/input/misc/qpnp_power_on_mmi/Kconfig"
|
||||
source "drivers/input/misc/vl53L1/Kconfig"
|
||||
|
||||
@@ -88,6 +88,7 @@ obj-$(CONFIG_INPUT_IDEAPAD_SLIDEBAR) += ideapad_slidebar.o
|
||||
|
||||
obj-$(CONFIG_INPUT_EGISTEC_BIX) += ets_bix_mmi/
|
||||
obj-$(CONFIG_INPUT_EGISTEC_FPS) += ets_fps_mmi/
|
||||
obj-$(CONFIG_INPUT_FOCAL_FPS) += focal_fps_mmi/
|
||||
obj-$(CONFIG_INPUT_MISC_FPC1020) += fpc_fps_mmi/
|
||||
obj-$(CONFIG_INPUT_QPNP_POWER_ON_MMI) += qpnp_power_on_mmi/
|
||||
obj-$(CONFIG_INPUT_STMVL53L1) += vl53L1/
|
||||
|
||||
@@ -1,49 +1,3 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/misc/focal_fps_mmi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Early-logging level for ff_hal, ff_ta and driver as well. Note that this
|
||||
# logging level only takes effect before ff_config module is loaded.
|
||||
#
|
||||
# Options:
|
||||
# 0 - FF_LOG_LEVEL_ALL, All
|
||||
# 1 - FF_LOG_LEVEL_VBS, Verbose
|
||||
# 2 - FF_LOG_LEVEL_DBG, Debug
|
||||
# 3 - FF_LOG_LEVEL_INF, Info
|
||||
# 4 - FF_LOG_LEVEL_WRN, Warning
|
||||
# 5 - FF_LOG_LEVEL_ERR, Error
|
||||
EXTRA_CFLAGS += -D__FF_BUILD_DATE=\"$(shell date +%Y%m%d)\"
|
||||
EXTRA_CFLAGS += -D__FF_EARLY_LOG_LEVEL=2
|
||||
|
||||
|
||||
focal_fps_mmi-y += ff_ctl.o plat-msm.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
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_FOCAL_SUPPORT_DRM_SCREEN)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_FOCAL_PANEL_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
obj-m += focal_fps_mmi.o
|
||||
|
||||
focal_fps_mmi-y += ff_ctl.o plat-msm.o
|
||||
|
||||
obj-$(CONFIG_INPUT_FOCAL_FPS) += focal_fps_mmi.o
|
||||
@@ -0,0 +1,6 @@
|
||||
config INPUT_FOCAL_FPS
|
||||
tristate "FocalTech fingerprint sensor"
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for FocalTech finger print sensor.
|
||||
If unsure, say N.
|
||||
@@ -1370,14 +1370,20 @@ config TOUCHSCREEN_HIMAX_CHIPSET
|
||||
|
||||
source "drivers/input/touchscreen/hxchipset/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/goodix_berlin_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/nova_0flash_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/touchscreen_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/stmicro_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/synaptics_tcm2_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/focaltech_0flash_v2_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/focaltech_touch_v3/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/focaltech_v2_mmi/Kconfig"
|
||||
|
||||
source "drivers/input/touchscreen/ili9882_mmi/Kconfig"
|
||||
|
||||
@@ -117,9 +117,12 @@ obj-$(CONFIG_TOUCHSCREEN_FT3519) += ft3519/
|
||||
obj-$(CONFIG_TOUCHSCREEN_NT36XXX) += nt36xxx/
|
||||
obj-$(CONFIG_TOUCHSCREEN_HIMAX_CHIPSET) += hxchipset/
|
||||
|
||||
obj-$(CONFIG_TOUCHSCREEN_GOODIX_BRL) += goodix_berlin_mmi/
|
||||
obj-$(CONFIG_TOUCHSCREEN_NT36xxx_HOSTDL_SPI_MMI) += nova_0flash_mmi/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_MMI) += touchscreen_mmi/
|
||||
obj-$(CONFIG_TOUCHSCREEN_FTS_TS) += stmicro_mmi/
|
||||
obj-$(CONFIG_TOUCHSCREEN_SYNA_TCM2) += synaptics_tcm2_mmi/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_V2_MMI) += focaltech_0flash_v2_mmi/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3) += focaltech_touch_v3/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V2_MMI) += focaltech_v2_mmi/
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_ILI_9882_MMI) += ili9882_mmi/
|
||||
@@ -1,11 +1,4 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/focaltech_touch_v3 \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/focaltech_touch_v3/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/focaltech_touch_v3/focaltech_test
|
||||
|
||||
obj-m := focaltech_v3.o
|
||||
obj-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3) := focaltech_v3.o
|
||||
focaltech_v3-objs += focaltech_core.o
|
||||
focaltech_v3-objs += focaltech_ex_fun.o
|
||||
focaltech_v3-objs += focaltech_ex_mode.o
|
||||
@@ -20,67 +13,16 @@ focaltech_v3-objs += focaltech_test/focaltech_test_ini.o
|
||||
focaltech_v3-objs += focaltech_test/supported_ic/focaltech_test_ft3681.o
|
||||
focaltech_v3-objs += focaltech_ts_config.o
|
||||
|
||||
ifneq ($(filter ft3681,$(CONFIG_INPUT_FOCALTECH_V3_MMI_IC_NAME)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_FOCALTECH_V3_MMI_IC_NAME_FT3681
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_TOUCHSCREEN_MMI)),)
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../touchscreen_mmi/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
focaltech_v3-objs += focaltech_ts_mmi.o
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_FOCALTECH_V3_MMI_ENABLE_DOUBLE_TAP)),)
|
||||
EXTRA_CFLAGS += -DFOCALTECH_SENSOR_EN
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_FOCALTECH_V3_MMI_ENABLE_PALM)),)
|
||||
EXTRA_CFLAGS += -DFOCALTECH_PALM_SENSOR_EN
|
||||
endif
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_FOCALTECH_V3_MMI_PEN_NOTIFIER)),)
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../misc/pen/Module.symvers
|
||||
EXTRA_CFLAGS += -DFOCALTECH_PEN_NOTIFIER
|
||||
ccflags-y += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
focaltech_v3-objs += focaltech_ts_mmi.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_DRM_PANEL_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_DRM_PANEL_EVENT_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_EVENT_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_FTS_NOISE_TEST_P2P)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_FTS_NOISE_TEST_P2P
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_FTS_COMPATIBLE_WITH_GKI)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_FTS_COMPATIBLE_WITH_GKI
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_FTS_DOUBLE_TAP_CONTROL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_FTS_DOUBLE_TAP_CONTROL
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_FTS_SUPPORT_HIGH_RESOLUTION)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_FTS_SUPPORT_HIGH_RESOLUTION
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_FTS_VDD_GPIO_CONTROL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_FTS_VDD_GPIO_CONTROL
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_FTS_LAST_TIME)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_FTS_LAST_TIME
|
||||
endif
|
||||
|
||||
ifneq ($(findstring _factory,$(TARGET_PRODUCT)),)
|
||||
USE_TARGET_PRODUCT := $(strip $(subst _factory,, $(TARGET_PRODUCT)))
|
||||
else
|
||||
USE_TARGET_PRODUCT := $(TARGET_PRODUCT)
|
||||
endif
|
||||
|
||||
ifneq ($(filter bangkk%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_BANGKK
|
||||
endif
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/msm-$(MODULE_KERNEL_VERSION)/Module.symvers
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../mmi_info/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_NOISE_TEST_P2P) += -DCONFIG_FTS_NOISE_TEST_P2P
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_COMPATIBLE_WITH_GKI) += -DCONFIG_FTS_COMPATIBLE_WITH_GKI
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_DOUBLE_TAP_CONTROL) += -DCONFIG_FTS_DOUBLE_TAP_CONTROL
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_SUPPORT_HIGH_RESOLUTION) += -DCONFIG_FTS_SUPPORT_HIGH_RESOLUTION
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_VDD_GPIO_CONTROL) += -DCONFIG_FTS_VDD_GPIO_CONTROL
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_LAST_TIME) += -DCONFIG_FTS_LAST_TIME
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_ENABLE_DOUBLE_TAP) += -DFOCALTECH_SENSOR_EN
|
||||
ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_ENABLE_PALM) += -DFOCALTECH_PALM_SENSOR_EN
|
||||
@@ -13,3 +13,88 @@ config TOUCHSCREEN_FTS_DIRECTORY_V3
|
||||
string "Focaltech ts v3 directory name"
|
||||
default "focaltech_touch_v3"
|
||||
depends on TOUCHSCREEN_FTS_V3
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3
|
||||
tristate "FocalTech Touchscreen Driver V3"
|
||||
depends on INPUT_TOUCHSCREEN_MMI
|
||||
default n
|
||||
help
|
||||
Say Y here if you wish to include support for FocalTech Touchscreen V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called focaltech_v3.
|
||||
|
||||
if INPUT_TOUCHSCREEN_FOCALTECH_V3
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_NOISE_TEST_P2P
|
||||
bool "FocalTech V3 MMI Noise test point to point"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have Noise test point to point support on Moto
|
||||
FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_COMPATIBLE_WITH_GKI
|
||||
bool "FocalTech V3 MMI GKI compatibility"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have GKI compatibility support on Moto
|
||||
FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_DOUBLE_TAP_CONTROL
|
||||
bool "FocalTech V3 MMI Double tap control"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have Double tap control support on Moto
|
||||
FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_SUPPORT_HIGH_RESOLUTION
|
||||
bool "FocalTech V3 MMI High resolution"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have High resolution support on Moto
|
||||
FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_VDD_GPIO_CONTROL
|
||||
bool "FocalTech V3 MMI VDD GPIO control"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have VDD GPIO control support on Moto
|
||||
FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_LAST_TIME
|
||||
bool "FocalTech V3 MMI Timestamp"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have Timestamp support on Moto FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_ENABLE_DOUBLE_TAP
|
||||
bool "FocalTech V3 MMI Double tap"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have Double tap support on Moto FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config INPUT_TOUCHSCREEN_FOCALTECH_V3_MMI_ENABLE_PALM
|
||||
bool "FocalTech V3 MMI Palm Sensor"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to have palm sensor support on Moto FocalTech V3.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
endif
|
||||
@@ -1,9 +1,4 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include
|
||||
|
||||
obj-m := goodix_brl_mmi.o
|
||||
obj-$(CONFIG_TOUCHSCREEN_GOODIX_BRL) := goodix_brl_mmi.o
|
||||
goodix_brl_mmi-objs := \
|
||||
goodix_brl_i2c.o \
|
||||
goodix_brl_spi.o \
|
||||
@@ -16,110 +11,17 @@ goodix_brl_mmi-objs := \
|
||||
goodix_ts_tools.o \
|
||||
goodix_ts_config.o
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_DRM_PANEL_EVENT_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_EVENT_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_DRM_PANEL_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TOUCHSCREEN_GOODIX_BRL_SPI)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_TOUCHSCREEN_GOODIX_BRL_SPI
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_GTP_FOD)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_FOD
|
||||
goodix_brl_mmi-objs += goodix_ts_gesture_fod.o
|
||||
else
|
||||
goodix_brl_mmi-objs += goodix_ts_gesture.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_GTP_LIMIT_USE_SUPPLIER)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_LIMIT_USE_SUPPLIER
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_GTP_ENABLE_PM_QOS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_ENABLE_PM_QOS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_GOODIX_ESD_ENABLE)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GOODIX_ESD_ENABLE
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TARGET_BUILD_FACROTY)),)
|
||||
EXTRA_CFLAGS += -DGTP_SAVE_IN_CSV
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_GTP_LAST_TIME)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_LAST_TIME
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_GTP_DDA_STYLUS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_DDA_STYLUS
|
||||
goodix_brl_mmi-objs += goodix_ts_dda.o
|
||||
endif
|
||||
goodix_brl_mmi-$(CONFIG_GTP_DDA_STYLUS) += goodix_ts_dda.o
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_TOUCHSCREEN_MMI)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
goodix_brl_mmi-objs += goodix_ts_mmi.o
|
||||
ccflags-y += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
goodix_brl_mmi-objs += goodix_ts_mmi.o
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_BOARD_USES_DOUBLE_TAP_CTRL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_BOARD_USES_DOUBLE_TAP_CTRL
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_GOODIX_MMI_ENABLE_PALM)),)
|
||||
EXTRA_CFLAGS += -DGOODIX_PALM_SENSOR_EN
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT), userdebug)
|
||||
ifneq ($(filter m y, $(CONFIG_GTP_GHOST_LOG_CAPTURE)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_GHOST_LOG_CAPTURE
|
||||
goodix_brl_mmi-objs += goodix_ts_log_capture.o
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_ENABLE_GTP_PALM_CANCEL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_ENABLE_GTP_PALM_CANCEL
|
||||
endif
|
||||
|
||||
ifneq ($(findstring _factory,$(TARGET_PRODUCT)),)
|
||||
USE_TARGET_PRODUCT := $(strip $(subst _factory,, $(TARGET_PRODUCT)))
|
||||
else
|
||||
USE_TARGET_PRODUCT := $(TARGET_PRODUCT)
|
||||
endif
|
||||
|
||||
ifneq ($(filter oneli, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_ONELI
|
||||
else ifneq ($(filter hiphi, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_HIPHI
|
||||
else ifneq ($(filter hiphic, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_HIPHIC
|
||||
else ifneq ($(filter li, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_LI
|
||||
else ifneq ($(filter eqs, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_EQS
|
||||
else ifneq ($(filter tundra%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_TUNDRA
|
||||
else ifneq ($(filter miami%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_MIAMI
|
||||
else ifneq ($(filter rtwo%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_RTWO
|
||||
else ifneq ($(filter ctwo%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_CTWO
|
||||
else ifneq ($(filter bronco, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_BRONCO
|
||||
else ifneq ($(filter felix, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DCONFIG_GTP_DISP_MODE
|
||||
else ifneq ($(filter zeekr%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_ZEEKR
|
||||
else ifneq ($(filter lynkco%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_LYNKCO
|
||||
else ifneq ($(filter bangkk%, $(USE_TARGET_PRODUCT)), )
|
||||
EXTRA_CFLAGS += -DPRODUCT_BANGKK
|
||||
endif
|
||||
$(warning "william EXTRA_CFLAGS = $(EXTRA_CFLAGS)")
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../touchscreen_mmi/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../mmi_info/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
ccflags-$(CONFIG_INPUT_GOODIX_MMI_ENABLE_PALM) += -DGOODIX_PALM_SENSOR_EN
|
||||
@@ -13,8 +13,53 @@ menuconfig TOUCHSCREEN_GOODIX_BRL
|
||||
if TOUCHSCREEN_GOODIX_BRL
|
||||
|
||||
config TOUCHSCREEN_GOODIX_BRL_SPI
|
||||
bool "support SPI bus connection"
|
||||
bool "Goodix berlin SPI bus connection"
|
||||
help
|
||||
Say Y here if the touchscreen is connected via SPI bus.
|
||||
Say Y here if the touchscreen is connected via SPI bus.
|
||||
|
||||
config GTP_FOD
|
||||
bool "Goodix berlin FOD"
|
||||
help
|
||||
Say Y here to support FOD.
|
||||
|
||||
config GTP_LIMIT_USE_SUPPLIER
|
||||
bool "Goodix berlin limit use supplier"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to limit use supplier on Goodix berlin.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config GTP_ENABLE_PM_QOS
|
||||
bool "Goodix berlin PM QoS"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to enable PM QoS on Goodix berlin.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config GOODIX_ESD_ENABLE
|
||||
bool "Goodix berlin ESD"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to enable ESD on Goodix berlin.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config GTP_LAST_TIME
|
||||
bool "Goodix berlin timestamp"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to enable timestamp on Goodix berlin.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config ENABLE_GTP_PALM_CANCEL
|
||||
bool "Goodix berlin palm cancel"
|
||||
default n
|
||||
help
|
||||
Say Y here if you want to enable palm cancel on Goodix berlin.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
endif
|
||||
@@ -1,11 +1,6 @@
|
||||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/synaptics_tcm2_mmi \
|
||||
-I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/drivers/input/touchscreen/synaptics_tcm2_mmi/tcm
|
||||
ccflags-y += -I$(src)/tcm
|
||||
|
||||
obj-m := synaptics_v2_mmi.o
|
||||
obj-$(CONFIG_TOUCHSCREEN_SYNA_TCM2) := synaptics_v2_mmi.o
|
||||
synaptics_v2_mmi-objs := \
|
||||
syna_tcm2.o \
|
||||
syna_tcm2_testing.o \
|
||||
@@ -17,27 +12,7 @@ synaptics_v2_mmi-objs := \
|
||||
tcm/synaptics_touchcom_func_reflash.o \
|
||||
tcm/synaptics_touchcom_func_touch.o
|
||||
|
||||
|
||||
|
||||
|
||||
ifneq ($(filter m y, $(CONFIG_DRM_PANEL_NOTIFICATIONS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_NOTIFICATIONS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TOUCHSCREEN_SYNA_TCM2_SYSFS)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_TOUCHSCREEN_SYNA_TCM2_SYSFS
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_TOUCHSCREEN_SYNA_TCM2_TESTING)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_TOUCHSCREEN_SYNA_TCM2_TESTING
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_INPUT_TOUCHSCREEN_MMI)),)
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../touchscreen_mmi/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
EXTRA_CFLAGS += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
synaptics_v2_mmi-objs += syna_ts_mmi.o
|
||||
ccflags-y += -DCONFIG_INPUT_TOUCHSCREEN_MMI
|
||||
synaptics_v2_mmi-objs += syna_ts_mmi.o
|
||||
endif
|
||||
|
||||
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../touchscreen_mmi/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/../../../mmi_info/$(GKI_OBJ_MODULE_DIR)/Module.symvers
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
menuconfig TOUCHSCREEN_SYNA_TCM2
|
||||
tristate "Synaptics TCM touchscreen"
|
||||
default y
|
||||
default n
|
||||
help
|
||||
Say Y here if you have a Synaptics TCM touchscreen connected
|
||||
to your system.
|
||||
@@ -14,17 +14,6 @@ menuconfig TOUCHSCREEN_SYNA_TCM2
|
||||
|
||||
if TOUCHSCREEN_SYNA_TCM2
|
||||
|
||||
choice
|
||||
default TOUCHSCREEN_SYNA_TCM2_I2C
|
||||
prompt "Synaptics TCM bus module"
|
||||
config TOUCHSCREEN_SYNA_TCM2_I2C
|
||||
bool "I2C"
|
||||
depends on I2C
|
||||
config TOUCHSCREEN_SYNA_TCM2_SPI
|
||||
bool "SPI"
|
||||
depends on SPI_MASTER
|
||||
endchoice
|
||||
|
||||
config TOUCHSCREEN_SYNA_TCM2_SYSFS
|
||||
bool "Synaptics TCM device sysfs module"
|
||||
depends on TOUCHSCREEN_SYNA_TCM2
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
|
||||
wl2868c-objs += wl2868c-regulator.o
|
||||
obj-m += wl2868c.o
|
||||
Reference in new issue
Block a user