summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2022-11-03 16:28:33 -0700
committerWilliam McVicker <willmcvicker@google.com>2022-12-22 18:14:34 +0000
commit319897a29e51b74bfda8bfe3e4558a2f8882793c (patch)
tree643f90dae78a5cea63bf753bebee02b687e20f2a
parent31439d6f881db35ca9a32a790069bc68adaab256 (diff)
downloadcommon-319897a29e51b74bfda8bfe3e4558a2f8882793c.tar.gz
kleaf: switch to generic label_flags
To allow for this project to be shared by multiple devices, let's switch to generic labels for the kernel_build, SoC module, and SoC headers. The flags are defined by the specific flags in their top-level bazel build file. Bug: 257343887 Change-Id: I453451d70ced99da44822b7c8a95f4c78b9138a2 Signed-off-by: Will McVicker <willmcvicker@google.com>
-rw-r--r--BUILD.bazel28
1 files changed, 12 insertions, 16 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index c378aa1..bff4947 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -1,10 +1,4 @@
-# NOTE: THIS FILE IS EXPERIMENTAL FOR THE BAZEL MIGRATION AND NOT USED FOR
-# YOUR BUILDS CURRENTLY.
-#
-# It is not yet the source of truth for your build. If you're looking to modify
-# the build file, modify the Android.bp file instead. Do *not* modify this file
-# unless you have coordinated with the team managing the Soong to Bazel
-# migration.
+# SPDX-License-Identifier: GPL-2.0-or-later
load("//build/kernel/kleaf:kernel.bzl", "kernel_module")
@@ -19,38 +13,40 @@ filegroup(
)
filegroup(
- name = "common.kconfig",
+ name = "touch.common.kconfig",
srcs = glob([
"Kconfig",
]),
visibility = [
+ "//private/devices/google:__subpackages__",
"//private/google-modules/soc/gs:__pkg__",
],
)
kernel_module(
- name = "common.slider",
+ name = "touch.common",
srcs = glob([
"**/*.c",
"**/*.h",
"Kbuild",
]) + [
- "//private/google-modules/soc/gs:gs101_soc_headers",
+ "//private/google-modules/soc/gs:gs_soc_headers",
"//private/google-modules/display:headers",
"//private/google-modules/display/include:headers",
],
outs = [
+ "goog_touch_interface.ko",
"heatmap.ko",
"touch_bus_negotiator.ko",
"touch_offload.ko",
- "goog_touch_interface.ko",
- ],
- kernel_build = "//private/google-modules/soc/gs:slider",
- kernel_module_deps = [
- "//private/google-modules/soc/gs:gs101_soc",
],
+ kernel_build = "//private/google-modules/soc/gs:gs_kernel_build",
visibility = [
- "//private/google-modules/touch:__subpackages__",
+ "//private/devices/google:__subpackages__",
"//private/google-modules/soc/gs:__pkg__",
+ "//private/google-modules/touch:__subpackages__",
+ ],
+ deps = [
+ "//private/google-modules/soc/gs:gs_soc_module",
],
)