summaryrefslogtreecommitdiff
path: root/mali_kbase/BUILD.bazel
diff options
context:
space:
mode:
authorJörg Wagner <jorwag@google.com>2023-08-31 19:15:13 +0000
committerJörg Wagner <jorwag@google.com>2023-09-01 09:13:55 +0000
commitb6fd708b3a4da86a196a61592ea3585f1aca7313 (patch)
tree1cbe3029a45bf9869c17a5b6954e5ae074b44ac8 /mali_kbase/BUILD.bazel
parent46edf1b5965d872c5f8a09c6dc3dcbff58f78a92 (diff)
parente61eb93296e9f940b32d4ad4b0c3a5557cbeaf17 (diff)
downloadgpu-b6fd708b3a4da86a196a61592ea3585f1aca7313.tar.gz
Merge r44p1-00dev3 from partner/upstream into android13-gs-pixel-5.10-udc-qpr1
Bug: 290882327 Change-Id: I90723cbaa3f294431087587fd8025f0688e51bf2
Diffstat (limited to 'mali_kbase/BUILD.bazel')
-rw-r--r--mali_kbase/BUILD.bazel55
1 files changed, 42 insertions, 13 deletions
diff --git a/mali_kbase/BUILD.bazel b/mali_kbase/BUILD.bazel
index e38f617..54dd437 100644
--- a/mali_kbase/BUILD.bazel
+++ b/mali_kbase/BUILD.bazel
@@ -1,27 +1,45 @@
-# NOTE: THIS FILE IS EXPERIMENTAL FOR THE BAZEL MIGRATION AND NOT USED FOR
-# YOUR BUILDS CURRENTLY.
+# This program is free software and is provided to you under the terms of the
+# GNU General Public License version 2 as published by the Free Software
+# Foundation, and any use by you of this program is subject to the terms
+# of such GNU license.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, you can access it online at
+# http://www.gnu.org/licenses/gpl-2.0.html.
+#
#
-# 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")
+load(
+ "//build/kernel/kleaf:kernel.bzl",
+ "kernel_module",
+)
+
+_midgard_modules = [
+ "mali_kbase.ko",
+ "tests/kutf/mali_kutf.ko",
+ "tests/mali_kutf_clk_rate_trace/kernel/mali_kutf_clk_rate_trace_test_portal.ko",
+]
kernel_module(
name = "mali_kbase.cloudripper",
srcs = glob([
"**/*.c",
"**/*.h",
- "**/Kbuild",
+ "**/*Kbuild",
+ "**/*Makefile",
]) + [
+ "//common:kernel_headers",
+ "//common-modules/mali:headers",
+ "//common-modules/mali/drivers/gpu/arm/arbitration",
+ "//common-modules/mali/drivers/xen/arm:xen",
"//private/google-modules/gpu/common:headers",
],
- outs = [
- "mali_kbase.ko",
- "tests/kutf/mali_kutf.ko",
- "tests/mali_kutf_clk_rate_trace/kernel/mali_kutf_clk_rate_trace_test_portal.ko",
- ],
+ outs = _midgard_modules,
kernel_build = "//private/gs-google:cloudripper",
visibility = [
"//private/gs-google:__pkg__",
@@ -30,3 +48,14 @@ kernel_module(
"//private/google-modules/gpu/mali_pixel",
],
)
+
+filegroup(
+ name = "midgard_kconfig.cloudripper",
+ srcs = glob([
+ "**/*Kconfig",
+ ]),
+ visibility = [
+ "//common:__pkg__",
+ "//common-modules/mali:__subpackages__",
+ ],
+)