Remove a bunch of references to "@org_frc971"
Downstream users use this as @aos. Use a combination of the clean_dep macro
and repo mappings to make it so that we will no longer have to maintain
diffs across the repositories.
The remaining differences are largely in some random rust files.
Change-Id: Ie10c88c299bc1ee9a0309a6a5536c49638519557
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/flatbuffers.bzl b/aos/flatbuffers.bzl
index c26906a..a5158cc 100644
--- a/aos/flatbuffers.bzl
+++ b/aos/flatbuffers.bzl
@@ -1,3 +1,5 @@
+load("//tools/build_rules:clean_dep.bzl", "clean_dep")
+
def cc_static_flatbuffer(name, target, function, bfbs_name = None, visibility = None):
"""Creates a cc_library which encodes a file as a Span.
@@ -9,10 +11,10 @@
"""
native.genrule(
name = name + "_gen",
- tools = ["@org_frc971//aos:flatbuffers_static"],
+ tools = [clean_dep("//aos:flatbuffers_static")],
srcs = [target],
outs = [name + ".h"],
- cmd = "$(location @org_frc971//aos:flatbuffers_static) '$(SRCS)' $(OUTS) '" + function + "' " + (bfbs_name if bfbs_name else "-"),
+ cmd = "$(location " + clean_dep("//aos:flatbuffers_static") + ") '$(SRCS)' $(OUTS) '" + function + "' " + (bfbs_name if bfbs_name else "-"),
)
native.cc_library(