Skip to content

Commit 3e64827

Browse files
committed
Allow certificate_template to be used by downstream repos.
Use the module name '@lowrisc_opentitan' instead of '@' when referencing targets in the same workspace. This is the approach recommended by https://bazel.build/external/migration#specify-repo-name and allows downstream projects to reuse OpenTitan's certificate codegen. Signed-off-by: Jason Young <jasonyoung@google.com>
1 parent e34333f commit 3e64827

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rules/certificates.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ def certificate_template(name, template, cert_format = "x509"):
119119

120120
if cert_format == "x509":
121121
runtime_deps = [
122-
"@//sw/device/silicon_creator/lib/cert:asn1",
123-
"@//sw/device/silicon_creator/lib/cert:template",
122+
"@lowrisc_opentitan//sw/device/silicon_creator/lib/cert:asn1",
123+
"@lowrisc_opentitan//sw/device/silicon_creator/lib/cert:template",
124124
]
125125
else:
126126
runtime_deps = [
127-
"@//sw/device/silicon_creator/lib/cert:cbor",
127+
"@lowrisc_opentitan//sw/device/silicon_creator/lib/cert:cbor",
128128
]
129129

130130
native.cc_library(

0 commit comments

Comments
 (0)