-
Notifications
You must be signed in to change notification settings - Fork 777
/
WORKSPACE
190 lines (156 loc) · 6.06 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# If you're planning to add to this file, please read
# //third_party/README.md first.
workspace(name = "lowrisc_opentitan")
# Bazel skylib library
load("//third_party/skylib:repos.bzl", "bazel_skylib_repos")
bazel_skylib_repos()
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# Python Toolchain + PIP Dependencies
load("//third_party/python:repos.bzl", "python_repos")
python_repos()
load("//third_party/python:deps.bzl", "python_deps")
python_deps()
load("//third_party/python:pip.bzl", "pip_deps")
pip_deps()
load("@ot_python_deps//:requirements.bzl", install_ot_python_deps="install_deps")
install_ot_python_deps()
# Google/Bazel dependencies. This needs to be after Python initialization
# so that our preferred python configuration takes precedence.
load("//third_party/google:repos.bzl", "google_repos")
google_repos()
load("//third_party/google:deps.bzl", "google_deps")
google_deps()
# CRT is the Compiler Repository Toolkit. It contains the configuration for
# the windows compiler.
load("//third_party/crt:repos.bzl", "crt_repos")
crt_repos()
load("@crt//:repos.bzl", "crt_repos")
crt_repos()
load("@crt//:deps.bzl", "crt_deps")
crt_deps()
load("@crt//config:registration.bzl", "crt_register_toolchains")
crt_register_toolchains(riscv32 = True)
# Tools for release automation
load("//third_party/github:repos.bzl", "github_tools_repos")
github_tools_repos()
# Go Toolchain (needed by the Buildifier linter)
load("//third_party/go:repos.bzl", "go_repos")
go_repos()
load("//third_party/go:deps.bzl", "go_deps")
go_deps()
# Various linters
load("//third_party/lint:repos.bzl", "lint_repos")
lint_repos()
load("//third_party/lint:deps.bzl", "lint_deps")
lint_deps()
load("@lowrisc_misc_linters_pip//:requirements.bzl", install_lowrisc_lint_python_deps="install_deps")
install_lowrisc_lint_python_deps()
# Lychee link checker.
load("//third_party/lychee:repos.bzl", "lychee_repos")
lychee_repos()
load("//third_party/google:repos.bzl", "fuzzing_repos")
fuzzing_repos()
load("//third_party/google:fuzzing_deps.bzl", "fuzzing_deps")
fuzzing_deps()
load("@fuzzing_py_deps//:requirements.bzl", install_fuzzing_python_deps="install_deps")
install_fuzzing_python_deps()
# Rust Toolchain + crates.io Dependencies
load("//third_party/rust:repos.bzl", "rust_repos")
rust_repos()
load("//third_party/rust:deps.bzl", "rust_deps")
rust_deps()
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
crate_universe_dependencies(bootstrap = True)
load("//third_party/rust/crates:crates.bzl", "crate_repositories")
crate_repositories()
# Shellcheck
load("//third_party/shellcheck:repos.bzl", "shellcheck_repos")
shellcheck_repos()
# Tock dependencies.
load("//third_party/tock/crates:crates.bzl", tock_crate_repositories = "crate_repositories")
tock_crate_repositories()
load("//third_party/tock:repos.bzl", tock_repos="tock_repos")
tock_repos(
# For developing tock/libtock along side OpenTitan, set these parameters
# to your local checkout of tock and libtock-rs respectively.
#tock = "../tock",
#libtock = "../libtock-rs",
)
# OpenOCD
load("//third_party/openocd:repos.bzl", "openocd_repos")
openocd_repos()
# Protobuf Toolchain
load("//third_party/protobuf:repos.bzl", "protobuf_repos")
protobuf_repos()
load("//third_party/protobuf:deps.bzl", "protobuf_deps")
protobuf_deps()
# FreeRTOS; used by the OTTF
load("//third_party/freertos:repos.bzl", "freertos_repos")
freertos_repos()
# LLVM Compiler Runtime for Profiling
load("//third_party/llvm_compiler_rt:repos.bzl", "llvm_compiler_rt_repos")
llvm_compiler_rt_repos()
# RISC-V Compliance Tests
load("//third_party/riscv-compliance:repos.bzl", "riscv_compliance_repos")
riscv_compliance_repos()
# CoreMark benchmark
load("//third_party/coremark:repos.bzl", "coremark_repos")
coremark_repos()
# The standard Keccak algorithms
load("//third_party/xkcp:repos.bzl", "xkcp_repos")
xkcp_repos()
# HSM related repositories (SoftHSM2, etc)
load("//third_party/hsm:repos.bzl", "hsm_repos")
hsm_repos()
# NIST CAVP Test Vectors
load("//third_party/nist_cavp_testvectors:repos.bzl", "nist_cavp_repos")
nist_cavp_repos()
# Wycheproof Test Vectors
load("//third_party/wycheproof:repos.bzl", "wycheproof_repos")
wycheproof_repos()
# SPHINCS+ Test Vectors
load("//third_party/sphincsplus:repos.bzl", "sphincsplus_repos")
sphincsplus_repos()
# Bitstreams from https://storage.googleapis.com/opentitan-bitstreams/
load("//rules:bitstreams.bzl", "bitstreams_repo")
bitstreams_repo(name = "bitstreams")
# CBOR reader & writer from open-dice
load("//third_party/open-dice:repos.bzl", "open_dice_repos")
open_dice_repos()
# Setup for linking in externally managed test and provisioning customizations
# for both secure/non-secure manufacturer domains.
load("//rules:hooks_setup.bzl", "hooks_setup", "provisioning_exts_setup", "secure_hooks_setup")
hooks_setup(
name = "hooks_setup",
dummy = "sw/device/tests/closed_source",
)
secure_hooks_setup(
name = "secure_hooks_setup",
dummy = "sw/device/tests/closed_source",
)
provisioning_exts_setup(
name = "provisioning_exts_setup",
dummy = "sw/device/silicon_creator/manuf/extensions",
)
# Declare the external repositories:
# - One for both manufacturer secure and non-secure domains.
# - One for provisioning source code extensions.
load("@hooks_setup//:repos.bzl", "hooks_repo")
load("@secure_hooks_setup//:repos.bzl", "secure_hooks_repo")
load("@provisioning_exts_setup//:repos.bzl", "provisioning_exts_repo")
hooks_repo(name = "manufacturer_test_hooks")
secure_hooks_repo(name = "secure_manufacturer_test_hooks")
provisioning_exts_repo(name = "provisioning_exts")
# The nonhermetic_repo imports environment variables needed to run vivado.
load("//rules:nonhermetic.bzl", "nonhermetic_repo")
nonhermetic_repo(name = "nonhermetic")
# Binary firmware image for HyperDebug
load("//third_party/hyperdebug:repos.bzl", "hyperdebug_repos")
hyperdebug_repos()
register_toolchains(
"//rules/opentitan:localtools",
)