touch: blair: Add support for Bazel to build touch modules
Add support for touch modules to be built with Bazel for blair. Change-Id: Ib5c5767a714e6b8534c8d520652226ab3e034018 Signed-off-by: Jyothi bommidi <quic_jbommidi@quicinc.com>
This commit is contained in:

committed by
Srihitha Tangudu

parent
b452468521
commit
9125b26673
@@ -14,6 +14,11 @@ ifeq ($(TOUCH_DLKM_ENABLE), true)
|
||||
ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
|
||||
LOCAL_MODULE_DDK_BUILD := true
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_BOARD_PLATFORM), blair)
|
||||
LOCAL_MODULE_DDK_BUILD := true
|
||||
endif
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
# This makefile is only for DLKM
|
||||
|
22
BUILD.bazel
22
BUILD.bazel
@@ -22,6 +22,22 @@ ddk_headers(
|
||||
)
|
||||
)
|
||||
|
||||
ddk_headers(
|
||||
name = "focaltech_headers",
|
||||
hdrs = glob([
|
||||
"focaltech_touch/*.h"
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
ddk_headers(
|
||||
name = "synaptics_tcm_headers",
|
||||
hdrs = glob([
|
||||
"synaptics_tcm/*.h"
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
ddk_headers(
|
||||
name = "config_headers",
|
||||
hdrs = glob([
|
||||
@@ -33,8 +49,8 @@ ddk_headers(
|
||||
|
||||
ddk_headers(
|
||||
name = "touch_drivers_headers",
|
||||
hdrs = [":goodix_ts_headers", ":nt36xxx_headers", ":config_headers"]
|
||||
hdrs = [":goodix_ts_headers", ":nt36xxx_headers", ":focaltech_headers", ":synaptics_tcm_headers", ":config_headers"]
|
||||
)
|
||||
|
||||
load(":target.bzl", "define_pineapple")
|
||||
define_pineapple()
|
||||
load(":target.bzl", "define_touch_target")
|
||||
define_touch_target()
|
||||
|
39
target.bzl
39
target.bzl
@@ -1,9 +1,11 @@
|
||||
load(":touch_modules.bzl", "touch_driver_modules")
|
||||
load(":touch_modules_build.bzl", "define_consolidate_gki_modules")
|
||||
load(":touch_modules_build.bzl", "define_target_variant_modules")
|
||||
load("//msm-kernel:target_variants.bzl", "get_all_la_variants", "get_all_le_variants", "get_all_lxc_variants")
|
||||
|
||||
def define_pineapple():
|
||||
define_consolidate_gki_modules(
|
||||
target = "pineapple",
|
||||
def define_pineapple(t,v):
|
||||
define_target_variant_modules(
|
||||
target = t,
|
||||
variant = v,
|
||||
registry = touch_driver_modules,
|
||||
modules = [
|
||||
"nt36xxx-i2c",
|
||||
@@ -21,3 +23,32 @@ def define_pineapple():
|
||||
"CONFIG_TOUCHSCREEN_DUMMY"
|
||||
],
|
||||
)
|
||||
|
||||
def define_blair(t,v):
|
||||
define_target_variant_modules(
|
||||
target = t,
|
||||
variant = v,
|
||||
registry = touch_driver_modules,
|
||||
modules = [
|
||||
"nt36xxx-i2c",
|
||||
"goodix_ts",
|
||||
"focaltech_fts",
|
||||
"synaptics_tcm_ts"
|
||||
],
|
||||
config_options = [
|
||||
"TOUCH_DLKM_ENABLE",
|
||||
"CONFIG_ARCH_BLAIR",
|
||||
"CONFIG_MSM_TOUCH",
|
||||
"CONFIG_TOUCHSCREEN_NT36XXX_I2C",
|
||||
"CONFIG_TOUCHSCREEN_GOODIX_BRL",
|
||||
"CONFIG_TOUCH_FOCALTECH",
|
||||
"CONFIG_TOUCHSCREEN_SYNAPTICS_TCM"
|
||||
],
|
||||
)
|
||||
|
||||
def define_touch_target():
|
||||
for (t, v) in get_all_la_variants() + get_all_le_variants() + get_all_lxc_variants():
|
||||
if t == "blair":
|
||||
define_blair(t, v)
|
||||
else:
|
||||
define_pineapple(t, v)
|
||||
|
@@ -40,6 +40,34 @@ module_entry(
|
||||
]
|
||||
)
|
||||
|
||||
#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",
|
||||
|
Reference in New Issue
Block a user