android_kernel_samsung_sm86.../touch_modules.bzl
Srikanth Katteboina 1d39d6b82c touch: LW: Add support for Bazel to build touch modules
Changed module name to resolve bazel compilation.

Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Change-Id: I70720e9c4093eb6b74fbd413f53cdbf1e4d04480
2024-01-30 20:17:44 +05:30

156 lines
4.4 KiB
Python

# Importing to touch module entry api from touch_modules_build.bzl to define module entried for touch drivers
load(":touch_modules_build.bzl", "touch_module_entry")
# Importing the touch driver headers defined in BUILD.bazel
touch_driver_modules = touch_module_entry([":touch_drivers_headers"])
#Including the headers in the modules to be declared
module_entry = touch_driver_modules.register
#--------------- TOUCH-DRIVERS MODULES ------------------
#define ddk_module() for goodix_ts
module_entry(
name = "goodix_ts",
config_option = "CONFIG_TOUCHSCREEN_GOODIX_BRL",
srcs = [
"goodix_berlin_driver/goodix_brl_fwupdate.c",
"goodix_berlin_driver/goodix_brl_hw.c",
"goodix_berlin_driver/goodix_brl_i2c.c",
"goodix_berlin_driver/goodix_brl_spi.c",
"goodix_berlin_driver/goodix_cfg_bin.c",
"goodix_berlin_driver/goodix_ts_core.c",
"goodix_berlin_driver/goodix_ts_gesture.c",
"goodix_berlin_driver/goodix_ts_inspect.c",
"goodix_berlin_driver/goodix_ts_tools.c",
"goodix_berlin_driver/goodix_ts_utils.c",
"qts/qts_core.c"
]
)
#define ddk_module() for nt36xxx
module_entry(
name = "nt36xxx-i2c",
config_option = "CONFIG_TOUCHSCREEN_NT36XXX_I2C",
srcs = [
"nt36xxx/nt36xxx_ext_proc.c",
"nt36xxx/nt36xxx_fw_update.c",
"nt36xxx/nt36xxx_mp_ctrlram.c",
"nt36xxx/nt36xxx.c"
]
)
#define ddk_module() for focaltech_fts
module_entry(
name = "focaltech_fts",
config_option = "CONFIG_TOUCH_FOCALTECH",
srcs = [
"focaltech_touch/focaltech_core.c",
"focaltech_touch/focaltech_esdcheck.c",
"focaltech_touch/focaltech_ex_fun.c",
"focaltech_touch/focaltech_ex_mode.c",
"focaltech_touch/focaltech_flash/focaltech_upgrade_ft3518.c",
"focaltech_touch/focaltech_flash.c",
"focaltech_touch/focaltech_gesture.c",
"focaltech_touch/focaltech_i2c.c",
"focaltech_touch/focaltech_point_report_check.c"
]
)
#define ddk_module() for synaptics_tcm_ts
module_entry(
name = "synaptics_tcm_ts",
config_option = "CONFIG_TOUCHSCREEN_SYNAPTICS_TCM",
srcs = [
"synaptics_tcm/synaptics_tcm_core.c",
"synaptics_tcm/synaptics_tcm_i2c.c",
"synaptics_tcm/synaptics_tcm_touch.c"
]
)
#define ddk_module() for atmel_mxt_ts
module_entry(
name = "atmel_mxt_ts",
config_option = "CONFIG_TOUCHSCREEN_ATMEL_MXT",
srcs = [
"atmel_mxt/atmel_mxt_ts.c",
]
)
#define ddk_module() for dummy_ts
module_entry(
name = "dummy_ts",
config_option = "CONFIG_TOUCHSCREEN_DUMMY",
srcs = [
"dummy_touch/dummy_touch.c"
]
)
#define ddk_module() for glink_interface_ts
module_entry(
name = "glink_comm",
config_option = "CONFIG_TOUCHSCREEN_MSM_GLINK",
srcs = [
"glink_interface_ts/glink_interface.c"
]
)
#define ddk_module() for pt_ts
module_entry(
name = "pt_ts",
config_option = "CONFIG_TOUCHSCREEN_PARADE",
srcs = [
"pt/pt_core.c",
"pt/pt_devtree.c",
"pt/pt_mt_common.c",
"pt/pt_platform.c",
"pt/pt_btn.c",
"pt/pt_mtb.c",
"pt/pt_proximity.c"
]
)
#define ddk_module() for pt_i2c
module_entry(
name = "pt_i2c",
config_option = "CONFIG_TOUCHSCREEN_PARADE_I2C",
srcs = [
"pt/pt_i2c.c"
]
)
#define ddk_module() for pt_device_access
module_entry(
name = "pt_device_access",
config_option = "CONFIG_TOUCHSCREEN_PARADE_DEVICE_ACCESS",
srcs = [
"pt/pt_device_access.c"
]
)
#define ddk_module() for pt_debug
module_entry(
name = "pt_debug",
config_option = "CONFIG_TOUCHSCREEN_PARADE_DEBUG_MDL",
srcs = [
"pt/pt_debug.c"
]
)
#define ddk_module() for raydium_ts
module_entry(
name = "raydium_ts",
config_option = "CONFIG_TOUCHSCREEN_RM_TS",
srcs = [
"raydium/drv_interface.c",
"raydium/raydium_driver.c",
"raydium/raydium_fw_update.c",
"raydium/raydium_selftest.c",
"raydium/raydium_sysfs.c",
"raydium/chip_raydium/f303_ic_control.c",
"raydium/chip_raydium/f303_ic_test.c",
"raydium/chip_raydium/ic_drv_global.c",
"raydium/chip_raydium/ic_drv_interface.c"
]
)