• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#       http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""Custom MODULE.bazel definition for GBL.
16
17This is a stripped down version of Kleaf's MODULE.bazel because this repository does not build
18kernel.
19"""
20
21module(
22    name = "uefi-gbl",
23    version = "0.0.0",
24)
25
26register_toolchains(
27    "//prebuilts/build-tools:py_exec_tools_toolchain",
28    "//prebuilts/build-tools:py_toolchain",
29)
30
31bazel_dep(
32    name = "bazel_skylib",
33)
34bazel_dep(
35    name = "platforms",
36)
37bazel_dep(
38    name = "rules_cc",
39)
40bazel_dep(
41    name = "rules_pkg",
42)
43bazel_dep(
44    name = "rules_python",
45)
46
47local_path_override(
48    module_name = "bazel_features",
49    path = "external/bazel-contrib-bazel_features",
50)
51
52local_path_override(
53    module_name = "bazel_skylib",
54    path = "external/bazel-skylib",
55)
56
57local_path_override(
58    module_name = "platforms",
59    path = "external/bazelbuild-platforms",
60)
61
62local_path_override(
63    module_name = "rules_cc",
64    path = "external/bazelbuild-rules_cc",
65)
66
67local_path_override(
68    module_name = "rules_java",
69    path = "bootable/libbootloader/gbl/fake_modules/rules_java",
70)
71
72local_path_override(
73    module_name = "rules_kotlin",
74    path = "bootable/libbootloader/gbl/fake_modules/rules_kotlin",
75)
76
77local_path_override(
78    module_name = "rules_license",
79    path = "external/bazelbuild-rules_license",
80)
81
82local_path_override(
83    module_name = "rules_pkg",
84    path = "external/bazelbuild-rules_pkg",
85)
86
87local_path_override(
88    module_name = "rules_python",
89    path = "external/bazelbuild-rules_python",
90)
91
92local_path_override(
93    module_name = "rules_shell",
94    path = "external/bazelbuild-rules_shell",
95)
96
97local_path_override(
98    module_name = "protobuf",
99    path = "bootable/libbootloader/gbl/fake_modules/protobuf",
100)
101