summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2022-11-03 16:28:32 -0700
committerWill McVicker <willmcvicker@google.com>2022-12-19 13:46:17 -0800
commit3df759796c36d683f65f9ddcecbe8f68bae11852 (patch)
treed41e2708a0be0bcfb6165895a04383c5b1d12f68
parent929042f4a335a497a88c3f97785749f5e8d6817d (diff)
downloadnfc-android-gs-shusky-5.15-android14-qpr2.tar.gz
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: Ie1a50cda044813e7328a260158801b270341be72 Signed-off-by: Will McVicker <willmcvicker@google.com>
-rw-r--r--BUILD.bazel21
1 files changed, 8 insertions, 13 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index c7324fc..0160167 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -1,33 +1,28 @@
-# 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
load("//build/kernel/kleaf:kernel.bzl", "kernel_module")
kernel_module(
- name = "nfc.slider",
+ name = "nfc",
srcs = glob([
"**/*.c",
"**/*.h",
"Kbuild",
"ese/Kbuild",
]) + [
- "//private/google-modules/soc/gs:gs101_soc_headers",
+ "//private/google-modules/soc/gs:gs_soc_headers",
],
outs = [
"ese/st33spi.ko",
"ese/st54spi.ko",
"st21nfc.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/devices/google:__subpackages__",
"//private/google-modules/soc/gs:__pkg__",
],
+ deps = [
+ "//private/google-modules/soc/gs:gs_soc_module",
+ ],
)