oplus: touchpanel: Unconditionally build the module

Change-Id: Ia06f779f35158d427678c404650d87e292fd16c5
This commit is contained in:
dianlujitao
2025-01-29 13:23:49 +08:00
committed by Bruno Martins
parent b9b8aa6f06
commit 15a3da16d2
28 changed files with 76 additions and 58 deletions

View File

@@ -8,14 +8,14 @@
#obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3518) += ft3518/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3518) += ft3518/
obj-y += ft3518/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3658U) += ft3658u/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3658U_SPI) += ft3658u_spi/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3681) += ft3681/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT8057P) += ft8057p/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3683G) += ft3683g/
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3419U) += ft3419u/
obj-y += ft3658u_spi/
obj-y += ft3681/
obj-y += ft8057p/
obj-y += ft3683g/
obj-y += ft3419u/
oplus_bsp_tp_focal_common-y += focal_common.o
obj-$(CONFIG_TOUCHPANEL_FOCAL) += oplus_bsp_tp_focal_common.o
obj-m += oplus_bsp_tp_focal_common.o
#endif

View File

@@ -7,4 +7,4 @@
oplus_bsp_tp_ft3419u-y += ft3419u_driver.o
oplus_bsp_tp_ft3419u-y += ft3419u_test.o
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3419U) += oplus_bsp_tp_ft3419u.o
obj-m += oplus_bsp_tp_ft3419u.o

View File

@@ -11,4 +11,4 @@
oplus_bsp_tp_ft3518-y += ft3518_driver.o
oplus_bsp_tp_ft3518-y += ft3518_test.o
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3518) += oplus_bsp_tp_ft3518.o
obj-m += oplus_bsp_tp_ft3518.o

View File

@@ -5,4 +5,4 @@
# Each configuration option enables a list of files.
oplus_bsp_tp_ft3658u_spi-y += ft3658u_driver.o
oplus_bsp_tp_ft3658u_spi-y += ft3658u_test.o
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3658U_SPI) += oplus_bsp_tp_ft3658u_spi.o
obj-m += oplus_bsp_tp_ft3658u_spi.o

View File

@@ -7,4 +7,4 @@
oplus_bsp_tp_ft3681-y += ft3681_driver.o
oplus_bsp_tp_ft3681-y += ft3681_test.o
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3681) += oplus_bsp_tp_ft3681.o
obj-m += oplus_bsp_tp_ft3681.o

View File

@@ -7,4 +7,4 @@
oplus_bsp_tp_ft3683g-y += ft3683g_driver.o
oplus_bsp_tp_ft3683g-y += ft3683g_test.o
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT3683G) += oplus_bsp_tp_ft3683g.o
obj-m += oplus_bsp_tp_ft3683g.o

View File

@@ -7,4 +7,4 @@
oplus_bsp_tp_ft8057p-y += ft8057p_driver.o
oplus_bsp_tp_ft8057p-y += ft8057p_test.o
obj-$(CONFIG_TOUCHPANEL_FOCAL_FT8057P) += oplus_bsp_tp_ft8057p.o
obj-m += oplus_bsp_tp_ft8057p.o

View File

@@ -1,4 +1,3 @@
# gt9916 touchpanel driver
oplus_bsp_tp_gt9916-y += goodix_brl_core.o goodix_pen.o
obj-$(CONFIG_TOUCHPANEL_GOODIX_GT9916) += oplus_bsp_tp_gt9916.o
obj-m += oplus_bsp_tp_gt9916.o

View File

@@ -1,4 +1,3 @@
# gt9966 touchpanel driver
oplus_bsp_tp_gt9966-y += goodix_brl_core.o goodix_pen.o
obj-$(CONFIG_TOUCHPANEL_GOODIX_GT9966) += oplus_bsp_tp_gt9966.o
obj-m += oplus_bsp_tp_gt9966.o

View File

@@ -5,10 +5,10 @@
# Each configuration option enables a list of files.
obj-$(CONFIG_TOUCHPANEL_GOODIX_GT9886) += GT9886/
obj-$(CONFIG_TOUCHPANEL_GOODIX_GT9966) += GT9966/
obj-$(CONFIG_TOUCHPANEL_GOODIX_GT9916) += GT9916/
obj-y += GT9966/
obj-y += GT9916/
oplus_bsp_tp_goodix_comnon-y += gtx8_tools.o goodix_common.o
obj-$(CONFIG_TOUCHPANEL_GOODIX) += oplus_bsp_tp_goodix_comnon.o
obj-m += oplus_bsp_tp_goodix_comnon.o
#endif
#endif

View File

@@ -27,19 +27,25 @@ oplus_bsp_tp_comon-y += tp_ioctl.o
oplus_bsp_tp_comon-y += message_list.o
oplus_bsp_tp_comon-y += touch_pen/touch_pen_core.o
oplus_bsp_tp_comon-y += touch_pen/touch_pen_algo.o
obj-$(CONFIG_TOUCHPANEL_OPLUS) += oplus_bsp_tp_comon.o
oplus_bsp_tp_notify-y += touchpanel_notify/touchpanel_event_notify.o
oplus_bsp_tp_comon-y += touchpanel_tui_support/touchpanel_tui_support.o
obj-$(CONFIG_TOUCHPANEL_NOTIFY) += oplus_bsp_tp_notify.o
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS) += Synaptics/
obj-$(CONFIG_TOUCHPANEL_FOCAL) += Focal/
obj-$(CONFIG_TOUCHPANEL_GOODIX) += Goodix/
obj-$(CONFIG_TOUCHPANEL_NOVA) += Novatek/
obj-m += oplus_bsp_tp_common.o
oplus_bsp_tp_common-y := $(oplus_bsp_tp_comon-y)
ccflags-y += \
-DCONFIG_TOUCHPANEL_OPLUS_MODULE \
-I$(srctree)/$(src)
KBUILD_EXTRA_SYMBOLS := $(M)/touch_custom/Module.symvers
# oplus_bsp_tp_notify-y += touchpanel_notify/touchpanel_event_notify.o
# obj-$(CONFIG_TOUCHPANEL_NOTIFY) += oplus_bsp_tp_notify.o
obj-y += Synaptics/
obj-y += Focal/
obj-y += Goodix/
obj-y += Novatek/
obj-$(CONFIG_TOUCHPANEL_HIMAX) += Himax/
obj-$(CONFIG_TOUCHPANEL_SAMSUNG) += Samsung/
obj-$(CONFIG_TOUCHPANEL_ILITEK) += ilitek/
obj-y += ilitek/
obj-$(CONFIG_TOUCHPANEL_JADARD) += Jadard/
obj-$(CONFIG_TOUCHPANEL_ST) += St/

View File

@@ -8,12 +8,12 @@
#obj-$(CONFIG_TOUCHPANEL_NOVA_NT36672_NOFLASH) += NT36672_noflash/
#obj-$(CONFIG_TOUCHPANEL_NOVA_NT36525_NOFLASH) += NT36525_noflash/
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36672C_NOFLASH) += NT36672C_noflash/
obj-y += NT36672C_noflash/
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36523_NOFLASH) += NT36523_noflash/
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36532_NOFLASH) += NT36532_noflash/
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36536_NOFLASH) += NT36536_noflash/
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36528_NOFLASH) += NT36528_noflash/
obj-y += NT36532_noflash/
obj-y += NT36536_noflash/
obj-y += NT36528_noflash/
oplus_bsp_tp_novatek_common-y += novatek_common.o
obj-$(CONFIG_TOUCHPANEL_NOVA) += oplus_bsp_tp_novatek_common.o
obj-m += oplus_bsp_tp_novatek_common.o
#endif

View File

@@ -12,5 +12,5 @@ subdir-ccflags-y += -I$(srctree)/drivers/spi/mediatek/mt6763/
# Each configuration option enables a list of files.
oplus_bsp_tp_nt36528_noflash-y += nvt_drivers_nt36528_noflash.o
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36528_NOFLASH) += oplus_bsp_tp_nt36528_noflash.o
obj-m += oplus_bsp_tp_nt36528_noflash.o
#endif

View File

@@ -12,5 +12,5 @@ subdir-ccflags-y += -I$(srctree)/drivers/spi/mediatek/mt6763/
# Each configuration option enables a list of files.
oplus_bsp_tp_nt36532_noflash-y += nvt_drivers_nt36532_noflash.o
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36532_NOFLASH) += oplus_bsp_tp_nt36532_noflash.o
obj-m += oplus_bsp_tp_nt36532_noflash.o
#endif

View File

@@ -12,5 +12,5 @@ subdir-ccflags-y += -I$(srctree)/drivers/spi/mediatek/mt6763/
# Each configuration option enables a list of files.
oplus_bsp_tp_nt36536_noflash-y += nvt_drivers_nt36536_noflash.o
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36536_NOFLASH) += oplus_bsp_tp_nt36536_noflash.o
obj-m += oplus_bsp_tp_nt36536_noflash.o
#endif

View File

@@ -12,5 +12,5 @@ subdir-ccflags-y += -I$(srctree)/drivers/spi/mediatek/mt6763/
# Each configuration option enables a list of files.
oplus_bsp_tp_nt36672c_noflash-y += nvt_drivers_nt36672c_noflash.o
obj-$(CONFIG_TOUCHPANEL_NOVA_NT36672C_NOFLASH) += oplus_bsp_tp_nt36672c_noflash.o
obj-m += oplus_bsp_tp_nt36672c_noflash.o
#endif

View File

@@ -5,13 +5,14 @@
# Each configuration option enables a list of files.
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_S3706) += S3706/
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TCM_ONCELL) += Syna_tcm_oncell/
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TCM_S3910) += Syna_tcm_S3910/
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TCM_S3908) += Syna_tcm_S3908/
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TD4377_NOFLASH) += TD4377_noflash/
obj-y += Syna_tcm_S3910/
obj-y += Syna_tcm_S3908/
obj-y += TD4377_noflash/
oplus_bsp_tp_syna_comnon-y += synaptics_touch_panel_remote.o
oplus_bsp_tp_syna_comnon-y += synaptics_common.o
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS) += oplus_bsp_tp_syna_comnon.o
oplus_bsp_tp_syna_common-y += $(oplus_bsp_tp_syna_comnon-y)
obj-m += oplus_bsp_tp_syna_common.o
#endif
obj-$(CONFIG_KUNIT_OPLUS_SYNAPTICS) += kunit_synaptics.o
obj-$(CONFIG_KUNIT_OPLUS_SYNAPTICS) += kunit_synaptics.o

View File

@@ -7,4 +7,4 @@
oplus_bsp_tp_tcm_S3908-y += synaptics_tcm_S3908.o
oplus_bsp_tp_tcm_S3908-y += synaptics_tcm_device_S3908.o
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TCM_S3908) += oplus_bsp_tp_tcm_S3908.o
obj-m += oplus_bsp_tp_tcm_S3908.o

View File

@@ -7,4 +7,4 @@
oplus_bsp_tp_tcm_S3910-y += synaptics_tcm_S3910.o
oplus_bsp_tp_tcm_S3910-y += synaptics_tcm_device_S3910.o
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TCM_S3910) += oplus_bsp_tp_tcm_S3910.o
obj-m += oplus_bsp_tp_tcm_S3910.o

View File

@@ -10,5 +10,5 @@ oplus_bsp_tp_td4377_noflash-y += synaptics_tcm_device.o
oplus_bsp_tp_td4377_noflash-y += synaptics_tcm_recovery.o
oplus_bsp_tp_td4377_noflash-y += synaptics_tcm_zeroflash.o
obj-$(CONFIG_TOUCHPANEL_SYNAPTICS_TD4377_NOFLASH) += oplus_bsp_tp_td4377_noflash.o
obj-m += oplus_bsp_tp_td4377_noflash.o
#endif

View File

@@ -4,9 +4,9 @@
# Each configuration option enables a list of files.
obj-$(CONFIG_TOUCHPANEL_ILITEK_ILITEK9881H_V3) += ilitek9881h/
obj-$(CONFIG_TOUCHPANEL_ILITEK_ILITEK7807S) += ilitek7807s/
obj-y += ilitek7807s/
oplus_bsp_tp_ilitek_common-y += ilitek_common.o
obj-$(CONFIG_TOUCHPANEL_ILITEK) += oplus_bsp_tp_ilitek_common.o
obj-m += oplus_bsp_tp_ilitek_common.o
#endif
#endif

View File

@@ -10,5 +10,5 @@ oplus_bsp_tp_ilitek7807s-y += ili7807s_qcom.o \
ili7807s_mp.o \
ili7807s_fw.o \
ili7807s_node.o
obj-$(CONFIG_TOUCHPANEL_ILITEK_ILITEK7807S) += oplus_bsp_tp_ilitek7807s.o
obj-m += oplus_bsp_tp_ilitek7807s.o
#endif

View File

@@ -1,3 +1,4 @@
oplus_bsp_tp_custom-y := touch.o
obj-$(CONFIG_TOUCHPANEL_CUSTOM) += oplus_bsp_tp_custom.o
obj-m += oplus_bsp_tp_custom.o
ccflags-y += -I$(srctree)/$(src)/..

View File

@@ -8,8 +8,9 @@ subdir-ccflags-$(CONFIG_OPLUS_MTK_DRM_GKI_NOTIFY) += -I$(srctree)/drivers/misc/m
TCM_CORE=tcm/
ccflags-y += -I$(srctree)/drivers/input/touchscreen/synaptics_hbp/
ccflags-y += -I$(srctree)/drivers/input/touchscreen/synaptics_hbp/tcm/
ccflags-y += \
-I$(srctree)/$(src) \
-I$(srctree)/$(src)/../oplus_touchscreen_v2
subdir-ccflags-$(CONFIG_TOUCHPANEL_MTK_PLATFORM) += -I$(srctree)/drivers/misc/mediatek/include/
subdir-ccflags-$(CONFIG_OPLUS_MTK_DRM_GKI_NOTIFY) += -I$(srctree)/drivers/misc/mediatek/include/
@@ -34,4 +35,11 @@ synaptics_tcm2-y += touchpanel_autotest/touchpanel_autotest.o
synaptics_tcm2-y += touchpanel_healthinfo/touchpanel_healthinfo.o
synaptics_tcm2-y += touchpanel_healthinfo/touchpanel_exception.o
obj-$(CONFIG_TOUCHSCREEN_SYNA_TCM2) += synaptics_tcm2.o
obj-m += oplus_bsp_synaptics_tcm2.o
oplus_bsp_synaptics_tcm2-y := $(synaptics_tcm2-y)
ccflags-y += \
-DCONFIG_TOUCHPANEL_OPLUS_MODULE \
-DBUILD_BY_BAZEL \
-DTOUCHPANEL_STATS_TRACE_INCLUDE_PATH=$(srctree)/$(src)/touchpanel_healthinfo
KBUILD_EXTRA_SYMBOLS := $(M)/../oplus_touchscreen_v2/touch_custom/Module.symvers

View File

@@ -40,8 +40,12 @@ TRACE_EVENT(stats_report,
#endif /* _TRACE_TOUCH_H */
#ifndef TOUCHPANEL_STATS_TRACE_INCLUDE_PATH
#define TOUCHPANEL_STATS_TRACE_INCLUDE_PATH ../../../vendor/oplus/kernel/touchpanel/synaptics_hbp/touchpanel_healthinfo
#endif
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH ../../../vendor/oplus/kernel/touchpanel/synaptics_hbp/touchpanel_healthinfo
#define TRACE_INCLUDE_PATH TOUCHPANEL_STATS_TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE touchpanel_stats

View File

@@ -13,6 +13,6 @@ oplus_hbp_core-y += hbp_exception.o
CFLAGS_hbp_core.o := -I$(src)
obj-$(CONFIG_TOUCHSCREEN_HBP_CORE) += oplus_hbp_core.o
obj-m += oplus_hbp_core.o
obj-y += chips/

View File

@@ -1,6 +1,6 @@
# Makefile for the focaltech touchscreen drivers.
oplus_ft3683g-y += fhp_core.o
obj-$(CONFIG_TOUCHSCREEN_FTS) += oplus_ft3683g.o
obj-m += oplus_ft3683g.o
#obj-$(CONFIG_TOUCHSCREEN_FTS) += focaltech_flash.o
#obj-$(CONFIG_TOUCHSCREEN_FTS) += fhp_input.o

View File

@@ -13,4 +13,4 @@ oplus_bsp_tp_hbp_syna_s3910-y += tcm/synaptics_touchcom_func_touch.o
oplus_bsp_tp_hbp_syna_s3910-y += tcm/synaptics_touchcom_func_reflash.o
oplus_bsp_tp_hbp_syna_s3910-y += tcm/synaptics_touchcom_func_romboot.o
obj-$(CONFIG_TOUCHSCREEN_HBP_SYNA_S3910) += oplus_bsp_tp_hbp_syna_s3910.o
obj-m += oplus_bsp_tp_hbp_syna_s3910.o