Snap for 11216811 from 7e1956b12869de1cf99e6ebc2c1500ce1cde04b1 to 24Q1-release

Change-Id: I06dad4fcb6846109a61e6e3899f5d8f652cd3563
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 @@
 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 @@
     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",
     )