summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-14 00:01:20 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-14 00:01:20 +0000
commit195290f41d40067aa7940563899f1b026213356a (patch)
treeb36493336c42e7a1834ceb28be9ae43b3f127bd6
parent87abbf7e8e66411aa90aca112b6aef901ef34e31 (diff)
parent7e1956b12869de1cf99e6ebc2c1500ce1cde04b1 (diff)
downloadlibbootloader-android14-qpr2-release.tar.gz
Change-Id: I06dad4fcb6846109a61e6e3899f5d8f652cd3563
-rw-r--r--gbl/integration/aosp_u-boot-mainline/workspace.bzl7
1 files changed, 5 insertions, 2 deletions
diff --git a/gbl/integration/aosp_u-boot-mainline/workspace.bzl b/gbl/integration/aosp_u-boot-mainline/workspace.bzl
index 111a1cb..bb92010 100644
--- a/gbl/integration/aosp_u-boot-mainline/workspace.bzl
+++ b/gbl/integration/aosp_u-boot-mainline/workspace.bzl
@@ -17,6 +17,7 @@ This file contains rules and logic for setting up GBL workspace dependencies in
u-boot-mainline branch.
"""
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@gbl//toolchain:gbl_workspace_util.bzl", "android_rust_prebuilts", "gbl_llvm_prebuilts")
load("@kernel_toolchain_info//:dict.bzl", "CLANG_VERSION")
@@ -29,12 +30,14 @@ def define_gbl_workspace(name = None):
Args:
name (String): Placeholder for buildifier check.
"""
- native.local_repository(
+ maybe(
+ repo_rule = native.local_repository,
name = "rules_rust",
path = "external/bazelbuild-rules_rust",
)
- native.local_repository(
+ maybe(
+ repo_rule = native.local_repository,
name = "rules_license",
path = "external/bazelbuild-rules_license",
)