| # Copyright 2022 Google Inc. All Rights Reserved. |
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| workspace(name = "matcha") |
| |
| local_repository( |
| name = "lowrisc_opentitan", |
| path = "../opentitan-upstream", |
| ) |
| |
| new_local_repository( |
| name = "toolchain", |
| build_file = "third_party/toolchain/BUILD", |
| path = "../../cache/toolchain", |
| ) |
| |
| # TODO(b/248356571): Replace isp with vendor. |
| new_local_repository( |
| name = "isp", |
| build_file = "third_party/vendor/BUILD", |
| path = "../../hw/ip/isp", |
| ) |
| |
| # Bazel Embedded; Bazel platform configuration for embedded environments. |
| load("@lowrisc_opentitan//third_party/bazel_embedded:repos.bzl", "bazel_embedded_repos") |
| |
| bazel_embedded_repos() |
| |
| load("@lowrisc_opentitan//third_party/bazel_embedded:deps.bzl", "bazel_embedded_deps") |
| |
| bazel_embedded_deps() |
| |
| # The lowRISC LLVM Toolchain |
| load("@lowrisc_opentitan//third_party/lowrisc_toolchain:repos.bzl", "lowrisc_toolchain_repos") |
| |
| lowrisc_toolchain_repos() |
| |
| load("@lowrisc_opentitan//third_party/lowrisc_toolchain:deps.bzl", "lowrisc_toolchain_deps") |
| |
| lowrisc_toolchain_deps() |
| |
| # C/C++ Library Dependencies |
| load("@lowrisc_opentitan//third_party/cc:repos.bzl", "cc_repos") |
| |
| cc_repos() |
| |
| # Python Toolchain + PIP Dependencies |
| load("@lowrisc_opentitan//third_party/python:repos.bzl", "python_repos") |
| |
| python_repos() |
| |
| load("@lowrisc_opentitan//third_party/python:deps.bzl", "python_deps") |
| |
| python_deps() |
| |
| load("@lowrisc_opentitan//third_party/python:pip.bzl", "pip_deps") |
| |
| pip_deps() |
| |
| # The nonhermetic_repo imports environment variables needed to run vivado. |
| load("@lowrisc_opentitan//rules:nonhermetic.bzl", "nonhermetic_repo") |
| |
| nonhermetic_repo(name = "nonhermetic") |