Chris Frantz | 8d799de | 2022-04-04 11:19:15 -0700 | [diff] [blame] | 1 | # 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 Sota | ec9c6cd | 2022-04-08 15:16:22 -0400 | [diff] [blame] | 5 | # If you're planning to add to this file, please read |
| 6 | # //third_party/README.md first. |
| 7 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 8 | workspace(name = "lowrisc_opentitan") |
Chris Frantz | e745416 | 2021-08-25 14:43:05 -0700 | [diff] [blame] | 9 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 10 | # Bazel Embedded; Bazel platform configuration for embedded environments. |
| 11 | load("//third_party/bazel_embedded:repos.bzl", "bazel_embedded_repos") |
| 12 | bazel_embedded_repos() |
| 13 | load("//third_party/bazel_embedded:deps.bzl", "bazel_embedded_deps") |
Chris Frantz | e745416 | 2021-08-25 14:43:05 -0700 | [diff] [blame] | 14 | bazel_embedded_deps() |
| 15 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 16 | # The lowRISC LLVM Toolchain |
| 17 | load("//third_party/lowrisc_toolchain:repos.bzl", "lowrisc_toolchain_repos") |
| 18 | lowrisc_toolchain_repos() |
| 19 | load("//third_party/lowrisc_toolchain:deps.bzl", "lowrisc_toolchain_deps") |
| 20 | lowrisc_toolchain_deps() |
Drew Macrae | 78a5887 | 2021-09-07 20:52:19 +0000 | [diff] [blame] | 21 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 22 | # C/C++ Library Dependencies |
| 23 | load("//third_party/cc:repos.bzl", "cc_repos") |
| 24 | cc_repos() |
Chris Frantz | e745416 | 2021-08-25 14:43:05 -0700 | [diff] [blame] | 25 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 26 | # Go Toolchain |
| 27 | load("//third_party/go:repos.bzl", "go_repos") |
| 28 | go_repos() |
| 29 | load("//third_party/go:deps.bzl", "go_deps") |
| 30 | go_deps() |
Drew Macrae | 78a5887 | 2021-09-07 20:52:19 +0000 | [diff] [blame] | 31 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 32 | # Python Toolchain + PIP Dependencies |
| 33 | load("//third_party/python:repos.bzl", "python_repos") |
| 34 | python_repos() |
| 35 | load("//third_party/python:deps.bzl", "python_deps") |
| 36 | python_deps() |
| 37 | load("//third_party/python:pip.bzl", "pip_deps") |
| 38 | pip_deps() |
Chris Frantz | e745416 | 2021-08-25 14:43:05 -0700 | [diff] [blame] | 39 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 40 | # Rust Toolchain + crates.io Dependencies |
| 41 | load("//third_party/rust:repos.bzl", "rust_repos") |
| 42 | rust_repos() |
| 43 | load("//third_party/rust:deps.bzl", "rust_deps") |
| 44 | rust_deps() |
Drew Macrae | 78a5887 | 2021-09-07 20:52:19 +0000 | [diff] [blame] | 45 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 46 | # Protobuf Toolchain |
| 47 | load("//third_party/protobuf:repos.bzl", "protobuf_repos") |
| 48 | protobuf_repos() |
| 49 | load("//third_party/protobuf:deps.bzl", "protobuf_deps") |
Timothy Trippel | 65b77b9 | 2022-03-24 15:52:25 -0700 | [diff] [blame] | 50 | protobuf_deps() |
| 51 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 52 | # Various linters |
| 53 | load("//third_party/lint:repos.bzl", "lint_repos") |
| 54 | lint_repos() |
| 55 | load("//third_party/lint:deps.bzl", "lint_deps") |
| 56 | lint_deps() |
Timothy Trippel | 65b77b9 | 2022-03-24 15:52:25 -0700 | [diff] [blame] | 57 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 58 | # FreeRTOS; used by the OTTF |
| 59 | load("//third_party/freertos:repos.bzl", "freertos_repos") |
| 60 | freertos_repos() |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 61 | |
Miguel Young de la Sota | 98cfa22 | 2022-04-06 15:31:06 -0400 | [diff] [blame] | 62 | # RISC-V Compliance Tests |
| 63 | load("//third_party/riscv-compliance:repos.bzl", "riscv_compliance_repos") |
| 64 | riscv_compliance_repos() |
Chris Frantz | 74b0740 | 2022-04-07 18:07:34 -0700 | [diff] [blame] | 65 | |
| 66 | # Bitstreams from https://storage.googleapis.com/opentitan-bitstreams/ |
| 67 | load("//rules:bitstreams.bzl", "bitstreams_repo") |
| 68 | bitstreams_repo(name = "bitstreams") |
Chris Frantz | 74f9095 | 2022-04-18 20:57:01 -0700 | [diff] [blame] | 69 | |
Chris Frantz | 6d7c82a | 2022-05-12 14:20:17 -0700 | [diff] [blame] | 70 | # Setup for linking in external test hooks. |
| 71 | load("//rules:hooks_setup.bzl", "hooks_setup") |
| 72 | hooks_setup( |
| 73 | name = "hooks_setup", |
| 74 | dummy = "sw/device/tests/closed_source", |
| 75 | ) |
| 76 | |
| 77 | # Declare the external test_hooks repository. |
| 78 | load("@hooks_setup//:repos.bzl", "hooks_repo") |
| 79 | hooks_repo(name = "test_hooks") |
| 80 | |
Chris Frantz | 74f9095 | 2022-04-18 20:57:01 -0700 | [diff] [blame] | 81 | # The nonhermetic_repo imports environment variables needed to run vivado. |
| 82 | load("//rules:nonhermetic.bzl", "nonhermetic_repo") |
| 83 | nonhermetic_repo(name = "nonhermetic") |