Browse Source

touch: LW: Add support for Bazel to build touch modules

Adding support for touch modules to be built with Bazel
for LW WDP.

Change-Id: I2f0b400e959e17329ae8a3a35cad03ebd0d9cad9
Signed-off-by: Srikanth Katteboina <[email protected]>
Signed-off-by: Sayantan Majumder <[email protected]>
Sayantan Majumder 1 year ago
parent
commit
2896379d1d
3 changed files with 30 additions and 2 deletions
  1. 11 2
      BUILD.bazel
  2. 2 0
      target.bzl
  3. 17 0
      touch_modules.bzl

+ 11 - 2
BUILD.bazel

@@ -50,14 +50,23 @@ ddk_headers(
 ddk_headers(
     name = "pt_headers",
     hdrs = glob([
-            "pt/*.h",
+            "pt/*.h"
+        ]
+    )
+)
+
+ddk_headers(
+    name = "raydium_headers",
+    hdrs = glob([
+            "raydium/*.h",
+            "raydium/chip_raydium/*.h"
         ]
     )
 )
 
 ddk_headers(
     name = "touch_drivers_headers",
-    hdrs = [":goodix_ts_headers", ":nt36xxx_headers", ":focaltech_headers", ":synaptics_tcm_headers", ":pt_headers", ":config_headers"]
+    hdrs = [":goodix_ts_headers", ":nt36xxx_headers", ":focaltech_headers", ":synaptics_tcm_headers", ":pt_headers", ":raydium_headers", ":config_headers"]
 )
 
 load(":target.bzl", "define_touch_target")

+ 2 - 0
target.bzl

@@ -74,6 +74,7 @@ def define_monaco(t,v):
             "pt_i2c",
             "pt_device_access",
             "pt_debug",
+            "raydium_ts",
         ],
         config_options = [
             "TOUCH_DLKM_ENABLE",
@@ -86,6 +87,7 @@ def define_monaco(t,v):
             "CONFIG_TOUCHSCREEN_PARADE_BUTTON",
             "CONFIG_TOUCHSCREEN_PARADE_PROXIMITY",
             "CONFIG_TOUCHSCREEN_PARADE_DEBUG_MDL",
+            "CONFIG_TOUCHSCREEN_RM_TS",
         ],
 )
 

+ 17 - 0
touch_modules.bzl

@@ -127,3 +127,20 @@ module_entry(
             "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"
+    ]
+)