summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-07-01 19:58:15 -0700
committerTreeHugger Robot <treehugger-gerrit@google.com>2021-09-14 10:05:28 +0000
commit3d9f1de6abc82191c50808cff16ed3a2c0f7f818 (patch)
treefa00aae04bb41e2935df477d326f37e69720430a
parent6af65b1e3c87986ad31052cb0c47e2cbd80bae13 (diff)
downloadreset-3d9f1de6abc82191c50808cff16ed3a2c0f7f818.tar.gz
Kleaf: add power_reset kernel module for cloudripper
Bug: 192617687 Test: builds Change-Id: I95885b04e234149f54659752b0224969b9ee84ff
-rw-r--r--BUILD.bazel30
1 files changed, 30 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
new file mode 100644
index 0000000..3c29912
--- /dev/null
+++ b/BUILD.bazel
@@ -0,0 +1,30 @@
+# 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.
+
+load("//build/kleaf:kernel.bzl", "kernel_module")
+
+kernel_module(
+ name = "reset.cloudripper",
+ srcs = glob([
+ "**/*.c",
+ "**/*.h",
+ "Kbuild",
+ ]) + [
+ "//private/google-modules/bms:headers",
+ ],
+ outs = [
+ "exynos-reboot.ko",
+ ],
+ kernel_build = "//private/gs-google:cloudripper",
+ kernel_module_deps = [
+ "//private/google-modules/bms:bms.cloudripper",
+ ],
+ visibility = [
+ "//private/gs-google:__pkg__",
+ ],
+)