blob: eedda4ff030e5acf22feca4410c124a297c1b208 [file] [log] [blame]
Chris Frantz8d799de2022-04-04 11:19:15 -07001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
Miguel Young de la Sotaec9c6cd2022-04-08 15:16:22 -04005# If you're planning to add to this file, please read
6# //third_party/README.md first.
7
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -04008workspace(name = "lowrisc_opentitan")
Chris Frantze7454162021-08-25 14:43:05 -07009
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040010# Bazel Embedded; Bazel platform configuration for embedded environments.
11load("//third_party/bazel_embedded:repos.bzl", "bazel_embedded_repos")
12bazel_embedded_repos()
13load("//third_party/bazel_embedded:deps.bzl", "bazel_embedded_deps")
Chris Frantze7454162021-08-25 14:43:05 -070014bazel_embedded_deps()
15
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040016# The lowRISC LLVM Toolchain
17load("//third_party/lowrisc_toolchain:repos.bzl", "lowrisc_toolchain_repos")
18lowrisc_toolchain_repos()
19load("//third_party/lowrisc_toolchain:deps.bzl", "lowrisc_toolchain_deps")
20lowrisc_toolchain_deps()
Drew Macrae78a58872021-09-07 20:52:19 +000021
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040022# C/C++ Library Dependencies
23load("//third_party/cc:repos.bzl", "cc_repos")
24cc_repos()
Chris Frantze7454162021-08-25 14:43:05 -070025
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040026# Go Toolchain
27load("//third_party/go:repos.bzl", "go_repos")
28go_repos()
29load("//third_party/go:deps.bzl", "go_deps")
30go_deps()
Drew Macrae78a58872021-09-07 20:52:19 +000031
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040032# Python Toolchain + PIP Dependencies
33load("//third_party/python:repos.bzl", "python_repos")
34python_repos()
35load("//third_party/python:deps.bzl", "python_deps")
36python_deps()
37load("//third_party/python:pip.bzl", "pip_deps")
38pip_deps()
Chris Frantze7454162021-08-25 14:43:05 -070039
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040040# Rust Toolchain + crates.io Dependencies
41load("//third_party/rust:repos.bzl", "rust_repos")
42rust_repos()
43load("//third_party/rust:deps.bzl", "rust_deps")
44rust_deps()
Drew Macrae78a58872021-09-07 20:52:19 +000045
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040046# Protobuf Toolchain
47load("//third_party/protobuf:repos.bzl", "protobuf_repos")
48protobuf_repos()
49load("//third_party/protobuf:deps.bzl", "protobuf_deps")
Timothy Trippel65b77b92022-03-24 15:52:25 -070050protobuf_deps()
51
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040052# Various linters
53load("//third_party/lint:repos.bzl", "lint_repos")
54lint_repos()
55load("//third_party/lint:deps.bzl", "lint_deps")
56lint_deps()
Timothy Trippel65b77b92022-03-24 15:52:25 -070057
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040058# FreeRTOS; used by the OTTF
59load("//third_party/freertos:repos.bzl", "freertos_repos")
60freertos_repos()
Chris Frantz903bcec2021-11-09 16:43:29 -080061
Miguel Young de la Sota98cfa222022-04-06 15:31:06 -040062# RISC-V Compliance Tests
63load("//third_party/riscv-compliance:repos.bzl", "riscv_compliance_repos")
64riscv_compliance_repos()
Chris Frantz74b07402022-04-07 18:07:34 -070065
66# Bitstreams from https://storage.googleapis.com/opentitan-bitstreams/
67load("//rules:bitstreams.bzl", "bitstreams_repo")
68bitstreams_repo(name = "bitstreams")
Chris Frantz74f90952022-04-18 20:57:01 -070069
Chris Frantz6d7c82a2022-05-12 14:20:17 -070070# Setup for linking in external test hooks.
71load("//rules:hooks_setup.bzl", "hooks_setup")
72hooks_setup(
73 name = "hooks_setup",
74 dummy = "sw/device/tests/closed_source",
75)
76
77# Declare the external test_hooks repository.
78load("@hooks_setup//:repos.bzl", "hooks_repo")
79hooks_repo(name = "test_hooks")
80
Chris Frantz74f90952022-04-18 20:57:01 -070081# The nonhermetic_repo imports environment variables needed to run vivado.
82load("//rules:nonhermetic.bzl", "nonhermetic_repo")
83nonhermetic_repo(name = "nonhermetic")