From f6b887e86eac3713f1280b2e3ed62c8150e78be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Sun, 12 May 2024 18:04:43 +0200 Subject: [PATCH 01/10] WORKSPACE: Deprecate in favour of MODULE.bazel --- .bazelrc | 4 +- .bazelversion | 2 +- .gitignore | 2 - MODULE.bazel | 412 ++++++++++++++++++ WORKSPACE | 190 -------- cocotb/cocotb.bzl | 6 +- cocotb/tests/BUILD.bazel | 2 +- dependency_support/BUILD.bazel | 49 --- dependency_support/boost/MODULE.bazel.patch | 21 + .../boost/backtrace-supported.h.patch.patch | 72 +++ .../{libbacktrace.patch => boost.BUILD.patch} | 6 +- dependency_support/boost/config.h.patch.patch | 176 ++++++++ .../boost/libbacktrace.BUILD.patch | 34 ++ .../bundled.BUILD.bazel | 4 +- .../com_google_absl/com_google_absl.bzl | 8 +- .../com_google_ortools/linear_solver.patch | 16 + .../com_google_ortools/sat.patch | 18 + .../com_google_protobuf.bzl | 2 +- .../com_google_skywater_pdk/build_defs.bzl | 2 +- .../bundled.BUILD.bazel | 3 +- .../org_swig/bundled.BUILD.bazel | 11 +- dependency_support/org_swig/swigconfig.h | 2 +- .../org_theopenroadproject/build_helper.bzl | 2 +- .../bundled.BUILD.bazel | 2 +- .../asap7.bzl | 3 +- dependency_support/pip_requirements.txt | 2 +- dependency_support/requirements.bzl | 83 ---- .../verilator/private/verilator_utils.bzl | 10 +- extensions.bzl | 62 +++ flows/flows.bzl | 2 +- flows/openroad/build_defs.bzl | 2 +- flows/yosys/build_defs.bzl | 9 +- gds_write/BUILD | 2 +- pdk/liberty/BUILD | 2 +- pdk/proto/BUILD | 7 +- place_and_route/open_road.bzl | 2 +- static_timing/build_defs.bzl | 2 +- synthesis/BUILD.bazel | 7 +- synthesis/build_defs.bzl | 4 +- tools/BUILD | 2 +- 40 files changed, 868 insertions(+), 379 deletions(-) create mode 100644 MODULE.bazel delete mode 100644 WORKSPACE create mode 100644 dependency_support/boost/MODULE.bazel.patch create mode 100644 dependency_support/boost/backtrace-supported.h.patch.patch rename dependency_support/boost/{libbacktrace.patch => boost.BUILD.patch} (80%) create mode 100644 dependency_support/boost/config.h.patch.patch create mode 100644 dependency_support/boost/libbacktrace.BUILD.patch create mode 100644 dependency_support/com_google_ortools/linear_solver.patch create mode 100644 dependency_support/com_google_ortools/sat.patch delete mode 100755 dependency_support/requirements.bzl create mode 100644 extensions.bzl diff --git a/.bazelrc b/.bazelrc index a58e7d5f..b5c092cd 100644 --- a/.bazelrc +++ b/.bazelrc @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -common --noenable_bzlmod +common --enable_bzlmod build --cxxopt "-std=c++17" build --cxxopt "-ffp-contract=off" @@ -44,7 +44,7 @@ test:ciremotebuild --remote_timeout=3600 ############################################################################### # https://github.com/bazelbuild/bazel/issues/8195 -build --incompatible_disallow_empty_glob=true +build --incompatible_disallow_empty_glob=false ############################################################################### ## User flags diff --git a/.bazelversion b/.bazelversion index 8f0591a5..c6b7980b 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.x +8.x diff --git a/.gitignore b/.gitignore index 2a0fb87c..420c1274 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ bazel-*/ bazel-* user.bazelrc -MODULE.bazel -MODULE.bazel.lock diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 00000000..ebc5fde5 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,412 @@ +############################################################################### +# Bazel now uses Bzlmod by default to manage external dependencies. +# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. +# +# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 +############################################################################### + +module(name = "rules_hdl") + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "eigen", version = "3.4.0.bcr.1") +bazel_dep(name = "fmt", version = "11.1.1", repo_name = "com_github_fmtlib_fmt") +bazel_dep(name = "googletest", version = "1.15.0", repo_name = "com_google_googletest") +bazel_dep(name = "protobuf", version = "27.3") +bazel_dep(name = "rules_bison", version = "0.3") +bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost") +bazel_dep(name = "rules_cc", version = "0.1.1") +bazel_dep(name = "rules_flex", version = "0.3") +bazel_dep(name = "rules_java", version = "7.8.0") +bazel_dep(name = "rules_license", version = "1.0.0") +bazel_dep(name = "rules_m4", version = "0.2.4") +bazel_dep(name = "rules_python", version = "0.34.0") +bazel_dep(name = "rules_pkg", version = "0.10.1") +bazel_dep(name = "spdlog", version = "1.15.1", repo_name = "com_github_gabime_spdlog") +bazel_dep(name = "toolchains_llvm", version = "1.0.0") +bazel_dep(name = "zlib", version = "1.3.1.bcr.3") +bazel_dep(name = "or-tools", version = "9.12", repo_name = "com_google_ortools") + +archive_override( + module_name = "rules_boost", + integrity = "sha256-ymGvj87Jfv79f6G4kvOwLtRvBwCgTEqKuLrjb0hoMXs=", + patches = [ + "@rules_hdl//dependency_support/boost:boost.BUILD.patch", + "@rules_hdl//dependency_support/boost:libbacktrace.BUILD.patch", + "@rules_hdl//dependency_support/boost:MODULE.bazel.patch", + "@rules_hdl//dependency_support/boost:backtrace-supported.h.patch.patch", + "@rules_hdl//dependency_support/boost:config.h.patch.patch", + ], + strip_prefix = "rules_boost-5cdb3c83807d1036bebcc60acf87333e5b3cc856", + urls = ["https://github.com/nelhage/rules_boost/archive/5cdb3c83807d1036bebcc60acf87333e5b3cc856.zip"], +) + +archive_override( + module_name = "or-tools", + integrity = "sha256-y7e/7plAn4tXBMQgyaa8wQVJY5UliMGWUdT1uwSA9TQ=", + strip_prefix = "or-tools-9.12", + urls = ["https://github.com/google/or-tools/releases/download/v9.12/or-tools-9.12.tar.gz"], +) + +http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") + +_org_gnu_gnulib = use_repo_rule("//dependency_support/org_gnu_gnulib:org_gnu_gnulib.bzl", "_org_gnu_gnulib") + +_org_gnu_gnulib( + name = "org_gnu_gnulib", +) + +non_module_boost_repositories = use_extension("@com_github_nelhage_rules_boost//:boost/repositories.bzl", "non_module_dependencies") +use_repo(non_module_boost_repositories, "boost") + +# Configure and register the toolchain. +llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") +llvm.toolchain( + name = "llvm_toolchain", + link_flags = { + "linux-x86_64": [ + "--target=x86_64-unknown-linux-gnu", + "-lm", + "-no-canonical-prefixes", + "-fuse-ld=lld", + "-Wl,--build-id=md5", + "-Wl,--hash-style=gnu", + "-Wl,-z,relro,-z,now", + "-l:libc++.a", + "-l:libc++abi.a", + "-lpthread", + "-ldl", + ], + }, + llvm_version = "10.0.1", + sha256 = { + "linux-x86_64": "02a73cfa031dfe073ba8d6c608baf795aa2ddc78eed1b3e08f3739b803545046", + }, + strip_prefix = { + "linux-x86_64": "clang+llvm-10.0.1-x86_64-pc-linux-gnu", + }, + urls = { + "linux-x86_64": [ + # Use a custom built Clang+LLVM binrary distribution that is more portable than + # the official builds because it's built against an older glibc and does not have + # dynamic library dependencies to tinfo, gcc_s or stdlibc++. + # + # For more details, see the files under toolchains/clang. + "https://github.com/retone/deps/releases/download/na5/clang+llvm-10.0.1-x86_64-pc-linux-gnu.tar.xz", + ], + }, +) +use_repo(llvm, "llvm_toolchain") + +register_toolchains("@llvm_toolchain//:all") + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +python.toolchain( + ignore_root_user_error = True, + is_default = False, + python_version = "3.11", +) +python.toolchain( + ignore_root_user_error = True, + is_default = False, + python_version = "3.13", +) + +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") +pip.parse( + hub_name = "rules_hdl_pip_deps", + python_version = "3.11", + requirements_lock = "@rules_hdl//dependency_support:pip_requirements.txt", +) +use_repo(pip, "rules_hdl_pip_deps") + +git_repository( + name = "org_theopenroadproject", + build_file = "@rules_hdl//dependency_support/org_theopenroadproject:bundled.BUILD.bazel", + commit = "f6da0454e350e93c62264f7b7c95029e1ad2b9fd", + init_submodules = True, + patch_args = ["-p1"], + patches = [ + "@rules_hdl//dependency_support/org_theopenroadproject:0001-logging-change-to-support-silence.patch", + "@rules_hdl//dependency_support/org_theopenroadproject:0002-ortools-quotes.patch", + ], + remote = "https://github.com/The-OpenROAD-Project/OpenROAD.git", + shallow_since = "1709242873 -0800", +) + +http_archive( + name = "org_theopenroadproject_asap7sc6t_26", + build_file = "@rules_hdl//dependency_support/org_theopenroadproject_asap7sc6t_26:bundled.BUILD.bazel", + sha256 = "4bfe15775eaab3a5cc443d444ef82bf7b9c818ba2ed948ce3d9cc6a4cfa1c36c", + strip_prefix = "asap7sc6t_26-f572bf760c8bdc853cbafd0742790aba0780089c", + urls = [ + "https://github.com/The-OpenROAD-Project/asap7sc6t_26/archive/f572bf760c8bdc853cbafd0742790aba0780089c.tar.gz", + ], +) + +http_archive( + name = "org_theopenroadproject_asap7sc7p5t_27", + build_file = "@rules_hdl//dependency_support/org_theopenroadproject_asap7sc7p5t_27:bundled.BUILD.bazel", + sha256 = "db5531736a34f34e919488468e8ee09ae87495ff8a6188fad375d68c19e10e20", + strip_prefix = "asap7sc7p5t_27-900f55ed8bef025f39edcc8b8be5e04a2c55c15a", + urls = [ + "https://github.com/The-OpenROAD-Project/asap7sc7p5t_27/archive/900f55ed8bef025f39edcc8b8be5e04a2c55c15a.tar.gz", + ], +) + +http_archive( + name = "org_theopenroadproject_asap7_pdk_r1p7", + build_file = "@rules_hdl//dependency_support/org_theopenroadproject_asap7_pdk_r1p7:bundled.BUILD.bazel", + sha256 = "b5847f93e55debb49d03ec581e22eb301109ff90c9ad19d35ae1223c70250391", + strip_prefix = "asap7_pdk_r1p7-1ff7649bbf423207f6f70293dc1cf630cd477365", + urls = [ + "https://github.com/The-OpenROAD-Project/asap7_pdk_r1p7/archive/1ff7649bbf423207f6f70293dc1cf630cd477365.tar.gz", + ], +) + +http_archive( + name = "at_clifford_yosys", + build_file = "@rules_hdl//dependency_support:at_clifford_yosys/bundled.BUILD.bazel", + patches = [ + "@rules_hdl//dependency_support:at_clifford_yosys/yosys.patch", + "@rules_hdl//dependency_support:at_clifford_yosys/autoname.patch", + ], + sha256 = "46a9a4d969770fa20a2fd12c8e83307a597126609645c9655c370c0c365da344", + strip_prefix = "yosys-8f07a0d8404f63349d8d3111217b73c9eafbd667", + urls = [ + "https://github.com/YosysHQ/yosys/archive/8f07a0d8404f63349d8d3111217b73c9eafbd667.zip", + ], +) + +http_archive( + name = "edu_berkeley_abc", + build_file = "@rules_hdl//dependency_support:edu_berkeley_abc/bundled.BUILD.bazel", + sha256 = "9ea3d8b7a104a2394e8967c93b3faaa12c3444a8901c11786494119b8088a1d9", + strip_prefix = "abc-0d579a430d57e5b864a62407aac2da0faba7c3b0", + urls = [ + "https://github.com/berkeley-abc/abc/archive/0d579a430d57e5b864a62407aac2da0faba7c3b0.tar.gz", + ], +) + +http_archive( + name = "tk_tcl", + build_file = "@rules_hdl//dependency_support:tk_tcl/bundled.BUILD.bazel", + sha256 = "5196dbf6638e3df8d5c87b5815c8c2b758496eb6f0e41446596c9a4e638d87ed", + strip_prefix = "tcl8.6.10", + urls = [ + "https://prdownloads.sourceforge.net/tcl/tcl8.6.10-src.tar.gz", + ], +) + +http_archive( + name = "org_sourceware_libffi", + build_file = "@rules_hdl//dependency_support:org_sourceware_libffi/bundled.BUILD.bazel", + sha256 = "b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e", + strip_prefix = "libffi-3.4.6", + urls = [ + "https://github.com/libffi/libffi/releases/download/v3.4.6/libffi-3.4.6.tar.gz", + ], +) + +http_archive( + name = "org_theopenroadproject_asap7sc7p5t_28", + build_file = "@rules_hdl//dependency_support/org_theopenroadproject_asap7sc7p5t_28:bundled.BUILD.bazel", + sha256 = "7f028a41425b8d736958cae994b3c1722d4bef2c0d28f6bf507b9ac8138ecc41", + strip_prefix = "asap7sc7p5t_28-d88477438935a5a388bd6294f682dc405c93c5d2", + urls = [ + "https://github.com/The-OpenROAD-Project/asap7sc7p5t_28/archive/d88477438935a5a388bd6294f682dc405c93c5d2.tar.gz", + ], +) + +http_archive( + name = "com_google_skywater_pdk", + build_file = "@rules_hdl//dependency_support/com_google_skywater_pdk:bundled.BUILD.bazel", + sha256 = "49e5b03c26131a03eb038697d396a6ebf14058d78196f5d95c2bbdb0bdc8f32e", + strip_prefix = "skywater-pdk-3d7617a1acb92ea883539bcf22a632d6361a5de4", + urls = [ + "https://github.com/google/skywater-pdk/archive/3d7617a1acb92ea883539bcf22a632d6361a5de4.tar.gz", # 2020-12-04 + ], +) + +http_archive( + name = "net_zlib", + build_file = "@rules_hdl//dependency_support/net_zlib:bundled.BUILD.bazel", + sha256 = "f5cc4ab910db99b2bdbba39ebbdc225ffc2aa04b4057bc2817f1b94b6978cfc3", + strip_prefix = "zlib-1.2.11", + urls = [ + "https://github.com/madler/zlib/archive/v1.2.11.zip", + ], +) + +http_archive( + name = "verilator", + build_file = "@rules_hdl//dependency_support/verilator:verilator.BUILD.bazel", + sha256 = "3c2f5338f4b6ce7e2f47a142401acdd18cbf4c5da06092618d6d036c0afef12d", + strip_prefix = "verilator-5.022", + urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.022.tar.gz"], +) + +http_archive( + name = "com_icarus_iverilog", + build_file = "@rules_hdl//dependency_support:com_icarus_iverilog/bundled.BUILD.bazel", + sha256 = "a68cb1ef7c017ef090ebedb2bc3e39ef90ecc70a3400afb4aa94303bc3beaa7d", + strip_prefix = "iverilog-12_0", + urls = [ + "https://github.com/steveicarus/iverilog/archive/v12_0.tar.gz", + ], +) + +http_archive( + name = "org_sourceware_bzip2", + build_file = "@rules_hdl//dependency_support:org_sourceware_bzip2/bundled.BUILD.bazel", + sha256 = "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269", + strip_prefix = "bzip2-1.0.8", + urls = [ + "https://mirrors.kernel.org/sourceware/bzip2/bzip2-1.0.8.tar.gz", + "https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz", + ], +) + +http_archive( + name = "org_gnu_readline", + build_file = "@rules_hdl//dependency_support/org_gnu_readline:bundled.BUILD.bazel", + patches = [ + "@rules_hdl//dependency_support/org_gnu_readline:missing_include.patch", + ], + sha256 = "e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461", + strip_prefix = "readline-8.0", + urls = [ + "https://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz", + "http://ftp.vim.org/ftp/gnu/readline/readline-8.0.tar.gz", + "http://ftp.swin.edu.au/gnu/readline/readline-8.0.tar.gz", + ], +) + +http_archive( + name = "org_gnu_gperf", + build_file = "@rules_hdl//dependency_support:org_gnu_gperf/bundled.BUILD.bazel", + sha256 = "588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2", + strip_prefix = "gperf-3.1", + urls = [ + "http://ftp.acc.umu.se/mirror/gnu.org/gnu/gperf/gperf-3.1.tar.gz", + "http://ftp.gnu.org/gnu/gperf/gperf-3.1.tar.gz", + ], +) + +http_archive( + name = "net_invisible_island_ncurses", + build_file = "@rules_hdl//dependency_support:net_invisible_island_ncurses/bundled.BUILD.bazel", + sha256 = "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d", + strip_prefix = "ncurses-6.2", + urls = [ + "https://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz", + "https://fossies.org/linux/misc/ncurses-6.2.tar.gz", + "http://ftp.vim.org/ftp/gnu/ncurses/ncurses-6.2.tar.gz", + ], +) + +http_archive( + name = "org_7zip", + build_file_content = """ +exports_files( + ["7zz"], + visibility = ["//visibility:public"], +) +""", + sha256 = "4a47877a7f6eba7fe6c900f7379bb2061b9620b588cf3189d99ae2a8aaa8f503", + urls = ["https://www.7-zip.org/a/7z2407-linux-x64.tar.xz"], +) + +http_archive( + name = "org_swig", + build_file = "@rules_hdl//dependency_support/org_swig:bundled.BUILD.bazel", + sha256 = "e8a39cd6437e342cdcbd5af27a9bf11b62dc9efec9248065debcb8276fcbb925", + strip_prefix = "swig-4.0.0", + urls = [ + "https://downloads.sourceforge.net/swig/swig-4.0.0.tar.gz", + ], +) + +http_archive( + name = "com_github_quantamhd_lemon", + build_file = "@rules_hdl//dependency_support/com_github_quantamhd_lemon:bundled.BUILD.bazel", + patch_args = [ + "-p1", + ], + patches = [ + "@rules_hdl//dependency_support/com_github_quantamhd_lemon:lemon.patch", + "@rules_hdl//dependency_support/com_github_quantamhd_lemon:allocator-patch.patch", + ], + sha256 = "a7f28821431b76505966e9a34c94c180130f6162ed2fc59ade8a685b5d5dcfeb", + strip_prefix = "lemon-1.3.1", + urls = [ + "https://github.com/QuantamHD/lemon/archive/refs/tags/1.3.1.tar.gz", + ], +) + +http_archive( + name = "org_llvm_openmp", + build_file = "@rules_hdl//dependency_support/org_llvm_openmp:bundled.BUILD.bazel", + sha256 = "d19f728c8e04fb1e94566c8d76aef50ec926cd2f95ef3bf1e0a5de4909b28b44", + strip_prefix = "openmp-10.0.1.src", + urls = [ + "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/openmp-10.0.1.src.tar.xz", + ], +) + +http_archive( + name = "bliss", + build_file = "@com_google_ortools//bazel:bliss.BUILD.bazel", + patches = ["@com_google_ortools//bazel:bliss-0.73.patch"], + sha256 = "f57bf32804140cad58b1240b804e0dbd68f7e6bf67eba8e0c0fa3a62fd7f0f84", + url = "https://github.com/google/or-tools/releases/download/v9.0/bliss-0.73.zip", +) + +http_archive( + name = "org_gnu_glpk", + build_file = "@rules_hdl//dependency_support/org_gnu_glpk:bundled.BUILD.bazel", + patches = [ + "@rules_hdl//dependency_support/org_gnu_glpk:glpk.patch", + ], + sha256 = "c35438e3ba74a8d85236810e6b84879272c87cfa7473b4075201e2967839f48d", + strip_prefix = "glpk-4.47", + urls = [ + "http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz", + ], +) + +http_archive( + name = "org_pcre_ftp", + build_file = "@rules_hdl//dependency_support:org_pcre_ftp/bundled.BUILD.bazel", + sha256 = "aecafd4af3bd0f3935721af77b889d9024b2e01d96b58471bd91a3063fb47728", + strip_prefix = "pcre-8.44", + urls = [ + "https://ftp.exim.org/pub/pcre/pcre-8.44.tar.gz", + ], +) + +http_archive( + name = "com_github_libbacktrace", + build_file = "@rules_hdl//dependency_support/com_github_libbacktrace:bundled.BUILD.bazel", + sha256 = "90d224a18c0a0c0f1f22fe73b89ebebd4f1ee368e55d646718b7f3b294a52705", + strip_prefix = "libbacktrace-4d2dd0b172f2c9192f83ba93425f868f2a13c553", + urls = [ + "https://github.com/ianlancetaylor/libbacktrace/archive/4d2dd0b172f2c9192f83ba93425f868f2a13c553.zip", + ], +) + +hdl = use_extension(":extensions.bzl", "hdl_ext") +hdl.pdk( + name = "com_google_skywater_pdk", + libraries = [ + "sky130_fd_io", + "sky130_fd_sc_hd", + ], +) +use_repo(hdl, "com_google_skywater_pdk_sky130_fd_io") +use_repo(hdl, "com_google_skywater_pdk_sky130_fd_sc_hd") + +register_toolchains("//verilator:verilator_toolchain") diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index 54fea040..00000000 --- a/WORKSPACE +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -workspace(name = "rules_hdl") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -http_archive( - name = "rules_cc", - sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf", - strip_prefix = "rules_cc-0.0.9", - urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"], -) - -http_archive( - name = "com_grail_bazel_toolchain", - sha256 = "ddad1bde0eb9d470ea58500681a7deacdf55c714adf4b89271392c4687acb425", - strip_prefix = "toolchains_llvm-7e7c7cf1f965f348861085183d79b6a241764390", - urls = ["https://github.com/grailbio/bazel-toolchain/archive/7e7c7cf1f965f348861085183d79b6a241764390.tar.gz"], -) - -http_archive( - name = "bazel_skylib", - sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", - ], -) - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -maybe( - http_archive, - name = "rules_python", - sha256 = "e3f1cc7a04d9b09635afb3130731ed82b5f58eadc8233d4efb59944d92ffc06f", - strip_prefix = "rules_python-0.33.2", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.33.2/rules_python-0.33.2.tar.gz", -) - -load( - "@rules_python//python:repositories.bzl", - "py_repositories", - "python_register_toolchains", -) - -# Must be called before using anything from rules_python. -# https://github.com/bazelbuild/rules_python/issues/1560#issuecomment-1815118394 -py_repositories() - -python_register_toolchains( - name = "python39", - - # Required for our containerized CI environments; we do not recommend - # building bazel_rules_hdl as root normally. - ignore_root_user_error = True, - python_version = "3.9", -) - -# This sysroot is used by github.com/vsco/bazel-toolchains. -# Disabled for now waiting on https://github.com/pybind/pybind11_bazel/pull/29 -# py_bind11 relies on installed linux headers which a custom sysroot disables. -# Once hermetic python is supported this should no longer be an issue. -# http_archive( -# name = "org_chromium_sysroot_linux_x64", -# build_file_content = """ -# filegroup( -# name = "sysroot", -# srcs = glob(["*/**"]), -# visibility = ["//visibility:public"], -# ) -# """, -# sha256 = "73d828bf653f8f8548be704ce1ded4d195bf2bf937fc5426dd5636a9940d1969", -# urls = ["https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/3c248ba4290a5ad07085b7af07e6785bf1ae5b66/debian_stretch_amd64_sysroot.tar.xz"], -# ) - -load("@com_grail_bazel_toolchain//toolchain:deps.bzl", "bazel_toolchain_dependencies") - -bazel_toolchain_dependencies() - -load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain") - -llvm_toolchain( - name = "llvm_toolchain", - llvm_version = "10.0.1", - sha256 = { - "linux": "02a73cfa031dfe073ba8d6c608baf795aa2ddc78eed1b3e08f3739b803545046", - }, - strip_prefix = { - "linux": "clang+llvm-10.0.1-x86_64-pc-linux-gnu", - }, - urls = { - "linux": [ - # Use a custom built Clang+LLVM binrary distribution that is more portable than - # the official builds because it's built against an older glibc and does not have - # dynamic library dependencies to tinfo, gcc_s or stdlibc++. - # - # For more details, see the files under toolchains/clang. - "https://github.com/retone/deps/releases/download/na5/clang+llvm-10.0.1-x86_64-pc-linux-gnu.tar.xz", - ], - }, - # Disabled for now waiting on https://github.com/pybind/pybind11_bazel/pull/29 - # sysroot = { - # "linux": "@org_chromium_sysroot_linux_x64//:sysroot", - # }, -) - -maybe( - http_archive, - name = "rules_7zip", - sha256 = "fd9e99f6ccb9e946755f9bc444abefbdd1eedb32c372c56dcacc7eb486aed178", - strip_prefix = "rules_7zip-e00b15d3cb76b78ddc1c15e7426eb1d1b7ddaa3e", - urls = ["https://github.com/zaucy/rules_7zip/archive/e00b15d3cb76b78ddc1c15e7426eb1d1b7ddaa3e.zip"], -) - -load("@rules_7zip//:setup.bzl", "setup_7zip") - -setup_7zip() - -maybe( - http_archive, - name = "bazel_features", - sha256 = "ba1282c1aa1d1fffdcf994ab32131d7c7551a9bc960fbf05f42d55a1b930cbfb", - strip_prefix = "bazel_features-1.15.0", - url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.15.0/bazel_features-v1.15.0.tar.gz", -) - -load("@bazel_features//:deps.bzl", "bazel_features_deps") - -bazel_features_deps() - -maybe( - http_archive, - name = "rules_proto", - sha256 = "6fb6767d1bef535310547e03247f7518b03487740c11b6c6adb7952033fe1295", - strip_prefix = "rules_proto-6.0.2", - url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz", -) - -maybe( - http_archive, - name = "rules_pkg", - sha256 = "a89e203d3cf264e564fcb96b6e06dd70bc0557356eb48400ce4b5d97c2c3720d", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz", - "https://github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz", - ], -) - -load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") - -rules_pkg_dependencies() - -load("@rules_pkg//toolchains:rpmbuild.bzl", "rpmbuild_register_toolchains") - -rpmbuild_register_toolchains() - -# Third Party -load("//dependency_support:dependency_support.bzl", "dependency_support") - -dependency_support() -# Third Party - -load("//:init.bzl", "init") - -init() - -load("@rules_python//python:pip.bzl", "pip_parse") - -# Used only by the rules that vendor requirements.bzl -# Not needed by users of rules_hdl. -pip_parse( - name = "rules_hdl_pip_deps_to_vendor", - python_interpreter_target = "@python39_host//:python", - requirements_lock = "//dependency_support:pip_requirements.txt", -) diff --git a/cocotb/cocotb.bzl b/cocotb/cocotb.bzl index 8ab664d0..d3a59beb 100644 --- a/cocotb/cocotb.bzl +++ b/cocotb/cocotb.bzl @@ -109,8 +109,8 @@ def _get_pythonpath_to_set(ctx): return ":".join(imports) def _get_path_to_set(ctx): - sim_paths = _remove_duplicates_from_list([dep.label.workspace_root for dep in ctx.attr.sim]) - path = ":".join(["$PWD/" + str(p) for p in sim_paths]) + sim_paths = set([dep.label.workspace_name for dep in ctx.attr.sim]) + path = ":".join(["$PWD/../" + str(p) for p in sim_paths]) return path def _get_test_command(ctx, verilog_files, vhdl_files): @@ -132,7 +132,7 @@ def _get_test_command(ctx, verilog_files, vhdl_files): seed_args = " --seed {}".format(ctx.attr.seed) if ctx.attr.seed != "" else "" test_module_args = _pymodules_to_argstring(ctx.files.test_module, "test_module") - python_interpreter = ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime.interpreter.path + python_interpreter = ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime.interpreter.short_path command = ( "PATH={}:$PATH ".format(_get_path_to_set(ctx)) + diff --git a/cocotb/tests/BUILD.bazel b/cocotb/tests/BUILD.bazel index 4cce64aa..ca3ec7eb 100644 --- a/cocotb/tests/BUILD.bazel +++ b/cocotb/tests/BUILD.bazel @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@rules_hdl_pip_deps//:requirements.bzl", "requirement") load("//cocotb:cocotb.bzl", "cocotb_test") -load("//dependency_support:requirements.bzl", "requirement") load("//verilog:defs.bzl", "verilog_library") package( diff --git a/dependency_support/BUILD.bazel b/dependency_support/BUILD.bazel index daa5879f..e976ebc5 100644 --- a/dependency_support/BUILD.bazel +++ b/dependency_support/BUILD.bazel @@ -15,8 +15,6 @@ # See https://github.com/bazelbuild/rules_python/blob/main/examples/pip_parse_vendored/BUILD.bazel # for canonical vendoring setup. -load("@bazel_skylib//rules:diff_test.bzl", "diff_test") -load("@bazel_skylib//rules:write_file.bzl", "write_file") load("@rules_python//python:pip.bzl", "compile_pip_requirements") package( @@ -29,50 +27,3 @@ compile_pip_requirements( timeout = "moderate", src = "pip_requirements.in", ) - -genrule( - name = "clean_requirements", - srcs = ["@rules_hdl_pip_deps_to_vendor//:requirements.bzl"], - outs = ["requirements.clean.bzl"], - cmd = " | ".join([ - "cat $<", - # Substitute for vendored dependencies directly. - # We want to remove any references to the pip_parse repo used to generate - # the dependencies, otherwise the vendoring is not useful. - "sed -e 's/rules_hdl_pip_deps_to_vendor/rules_hdl_pip_deps_vendored/g'", - "sed -e 's|//\\([^:]*\\):pkg|_\\1//:pkg|g'", - "sed -e 's|//\\([^:]*\\):whl|_\\1//:whl|g'", - "sed -e 's|//\\([^:]*\\):data|_\\1//:data|g'", - "sed -e 's|//{}:{}|_{}//:{}|g' >$@", - # Replace the bazel 6.0.0 specific comment with something that bazel 5.4.0 would produce. - # This enables this example to be run as a test under bazel 5.4.0. - """sed -e 's#@rules_hdl//#@//#'""", - ]) + " >$@", -) - -write_file( - name = "gen_update", - out = "update.sh", - content = [ - # This depends on bash, would need tweaks for Windows - "#!/usr/bin/env bash", - # Bazel gives us a way to access the source folder! - "cd $BUILD_WORKSPACE_DIRECTORY", - "cp -fv bazel-bin/dependency_support/requirements.clean.bzl dependency_support/requirements.bzl", - ], -) - -sh_binary( - name = "vendor_requirements", - srcs = ["update.sh"], - data = [":clean_requirements"], -) - -# Similarly ensures that the requirements.bzl file is updated -# based on the requirements.txt lockfile. -diff_test( - name = "test_vendored", - failure_message = "Please run: bazel run //dependency_support:vendor_requirements", - file1 = "requirements.bzl", - file2 = ":clean_requirements", -) diff --git a/dependency_support/boost/MODULE.bazel.patch b/dependency_support/boost/MODULE.bazel.patch new file mode 100644 index 00000000..27ec16b8 --- /dev/null +++ b/dependency_support/boost/MODULE.bazel.patch @@ -0,0 +1,21 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -13,3 +13,18 @@ + non_module_boost_repositories, + "boost", + ) ++ ++http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ++http_archive( ++ name = "com_github_libbacktrace", ++ urls = [ ++ "https://github.com/ianlancetaylor/libbacktrace/archive/4d2dd0b172f2c9192f83ba93425f868f2a13c553.zip", ++ ], ++ strip_prefix = "libbacktrace-4d2dd0b172f2c9192f83ba93425f868f2a13c553", ++ sha256 = "90d224a18c0a0c0f1f22fe73b89ebebd4f1ee368e55d646718b7f3b294a52705", ++ build_file = "@com_github_nelhage_rules_boost//:libbacktrace.BUILD", ++ patches = [ ++ "@com_github_nelhage_rules_boost//:config.h.patch", ++ "@com_github_nelhage_rules_boost//:backtrace-supported.h.patch", ++ ], ++) diff --git a/dependency_support/boost/backtrace-supported.h.patch.patch b/dependency_support/boost/backtrace-supported.h.patch.patch new file mode 100644 index 00000000..2cefe004 --- /dev/null +++ b/dependency_support/boost/backtrace-supported.h.patch.patch @@ -0,0 +1,72 @@ +--- /dev/null ++++ backtrace-supported.h.patch +@@ -0,0 +1,69 @@ ++--- /dev/null +++++ backtrace-supported.h ++@@ -0,0 +1,66 @@ +++/* backtrace-supported.h.in -- Whether stack backtrace is supported. +++ Copyright (C) 2012-2021 Free Software Foundation, Inc. +++ Written by Ian Lance Taylor, Google. +++ +++Redistribution and use in source and binary forms, with or without +++modification, are permitted provided that the following conditions are +++met: +++ +++ (1) Redistributions of source code must retain the above copyright +++ notice, this list of conditions and the following disclaimer. +++ +++ (2) Redistributions in binary form must reproduce the above copyright +++ notice, this list of conditions and the following disclaimer in +++ the documentation and/or other materials provided with the +++ distribution. +++ +++ (3) The name of the author may not be used to +++ endorse or promote products derived from this software without +++ specific prior written permission. +++ +++THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +++IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +++DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +++INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +++SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +++HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +++STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +++IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +++POSSIBILITY OF SUCH DAMAGE. */ +++ +++/* The file backtrace-supported.h.in is used by configure to generate +++ the file backtrace-supported.h. The file backtrace-supported.h may +++ be #include'd to see whether the backtrace library will be able to +++ get a backtrace and produce symbolic information. */ +++ +++ +++/* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library +++ should work, 0 if it will not. Libraries may #include this to make +++ other arrangements. */ +++ +++#define BACKTRACE_SUPPORTED 1 +++ +++/* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace +++ library will call malloc as it works, 0 if it will call mmap +++ instead. This may be used to determine whether it is safe to call +++ the backtrace functions from a signal handler. In general this +++ only applies to calls like backtrace and backtrace_pcinfo. It does +++ not apply to backtrace_simple, which never calls malloc. It does +++ not apply to backtrace_print, which always calls fprintf and +++ therefore malloc. */ +++ +++#define BACKTRACE_USES_MALLOC 0 +++ +++/* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace +++ library is configured with threading support, 0 if not. If this is +++ 0, the threaded parameter to backtrace_create_state must be passed +++ as 0. */ +++ +++#define BACKTRACE_SUPPORTS_THREADS 1 +++ +++/* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo +++ will work for variables. It will always work for functions. */ +++ +++#define BACKTRACE_SUPPORTS_DATA 1 diff --git a/dependency_support/boost/libbacktrace.patch b/dependency_support/boost/boost.BUILD.patch similarity index 80% rename from dependency_support/boost/libbacktrace.patch rename to dependency_support/boost/boost.BUILD.patch index 6073f86c..997d0971 100644 --- a/dependency_support/boost/libbacktrace.patch +++ b/dependency_support/boost/boost.BUILD.patch @@ -1,8 +1,6 @@ -diff --git boost.BUILD boost.BUILD -index e5d0b60..bade47f 100644 --- boost.BUILD +++ boost.BUILD -@@ -1908,13 +1908,13 @@ boost_library( +@@ -1927,13 +1927,13 @@ exclude_src = ["libs/stacktrace/src/*.cpp"], linkopts = select({ ":linux_ppc": [ @@ -19,7 +17,7 @@ index e5d0b60..bade47f 100644 ], "//conditions:default": [], }), -@@ -1927,6 +1927,7 @@ boost_library( +@@ -1946,6 +1946,7 @@ ":predef", ":static_assert", ":type_traits", diff --git a/dependency_support/boost/config.h.patch.patch b/dependency_support/boost/config.h.patch.patch new file mode 100644 index 00000000..c793a400 --- /dev/null +++ b/dependency_support/boost/config.h.patch.patch @@ -0,0 +1,176 @@ +--- /dev/null ++++ config.h.patch +@@ -0,0 +1,173 @@ ++--- /dev/null +++++ config.h ++@@ -0,0 +1,170 @@ +++/* config.h. Generated from config.h.in by configure. */ +++/* config.h.in. Generated from configure.ac by autoheader. */ +++ +++/* ELF size: 32 or 64 */ +++#define BACKTRACE_ELF_SIZE 64 +++ +++/* XCOFF size: 32 or 64 */ +++#define BACKTRACE_XCOFF_SIZE unused +++ +++/* Define to 1 if you have the __atomic functions */ +++#define HAVE_ATOMIC_FUNCTIONS 1 +++ +++/* Define to 1 if you have the `clock_gettime' function. */ +++#define HAVE_CLOCK_GETTIME 1 +++ +++/* Define to 1 if you have the declaration of `getpagesize', and to 0 if you +++ don't. */ +++#define HAVE_DECL_GETPAGESIZE 1 +++ +++/* Define to 1 if you have the declaration of `strnlen', and to 0 if you +++ don't. */ +++#define HAVE_DECL_STRNLEN 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_DLFCN_H 1 +++ +++/* Define if dl_iterate_phdr is available. */ +++#define HAVE_DL_ITERATE_PHDR 1 +++ +++/* Define to 1 if you have the fcntl function */ +++#define HAVE_FCNTL 1 +++ +++/* Define if getexecname is available. */ +++/* #undef HAVE_GETEXECNAME */ +++ +++/* Define if _Unwind_GetIPInfo is available. */ +++#define HAVE_GETIPINFO 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_INTTYPES_H 1 +++ +++/* Define to 1 if you have KERN_PROC and KERN_PROC_PATHNAME in . +++ */ +++/* #undef HAVE_KERN_PROC */ +++ +++/* Define to 1 if you have KERN_PROCARGS and KERN_PROC_PATHNAME in +++ . */ +++/* #undef HAVE_KERN_PROC_ARGS */ +++ +++/* Define if -llzma is available. */ +++#define HAVE_LIBLZMA 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_LINK_H 1 +++ +++/* Define if AIX loadquery is available. */ +++/* #undef HAVE_LOADQUERY */ +++ +++/* Define to 1 if you have the `lstat' function. */ +++#define HAVE_LSTAT 1 +++ +++/* Define to 1 if you have the header file. */ +++/* #undef HAVE_MACH_O_DYLD_H */ +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_MEMORY_H 1 +++ +++/* Define to 1 if you have the `readlink' function. */ +++#define HAVE_READLINK 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_STDINT_H 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_STDLIB_H 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_STRINGS_H 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_STRING_H 1 +++ +++/* Define to 1 if you have the __sync functions */ +++#define HAVE_SYNC_FUNCTIONS 1 +++ +++/* Define to 1 if you have the header file. */ +++/* #undef HAVE_SYS_LDR_H */ +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_SYS_MMAN_H 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_SYS_STAT_H 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_SYS_TYPES_H 1 +++ +++/* Define to 1 if you have the header file. */ +++#define HAVE_UNISTD_H 1 +++ +++/* Define if -lz is available. */ +++#define HAVE_ZLIB 1 +++ +++/* Define to the sub-directory in which libtool stores uninstalled libraries. +++ */ +++#define LT_OBJDIR ".libs/" +++ +++/* Define to the address where bug reports for this package should be sent. */ +++#define PACKAGE_BUGREPORT "" +++ +++/* Define to the full name of this package. */ +++#define PACKAGE_NAME "package-unused" +++ +++/* Define to the full name and version of this package. */ +++#define PACKAGE_STRING "package-unused version-unused" +++ +++/* Define to the one symbol short name of this package. */ +++#define PACKAGE_TARNAME "libbacktrace" +++ +++/* Define to the home page for this package. */ +++#define PACKAGE_URL "" +++ +++/* Define to the version of this package. */ +++#define PACKAGE_VERSION "version-unused" +++ +++/* Define to 1 if you have the ANSI C header files. */ +++#define STDC_HEADERS 1 +++ +++/* Enable extensions on AIX 3, Interix. */ +++#ifndef _ALL_SOURCE +++# define _ALL_SOURCE 1 +++#endif +++/* Enable GNU extensions on systems that have them. */ +++#ifndef _GNU_SOURCE +++# define _GNU_SOURCE 1 +++#endif +++/* Enable threading extensions on Solaris. */ +++#ifndef _POSIX_PTHREAD_SEMANTICS +++# define _POSIX_PTHREAD_SEMANTICS 1 +++#endif +++/* Enable extensions on HP NonStop. */ +++#ifndef _TANDEM_SOURCE +++# define _TANDEM_SOURCE 1 +++#endif +++/* Enable general extensions on Solaris. */ +++#ifndef __EXTENSIONS__ +++# define __EXTENSIONS__ 1 +++#endif +++ +++ +++/* Enable large inode numbers on Mac OS X 10.5. */ +++#ifndef _DARWIN_USE_64_BIT_INODE +++# define _DARWIN_USE_64_BIT_INODE 1 +++#endif +++ +++/* Number of bits in a file offset, on hosts where this is settable. */ +++/* #undef _FILE_OFFSET_BITS */ +++ +++/* Define for large files, on AIX-style hosts. */ +++/* #undef _LARGE_FILES */ +++ +++/* Define to 1 if on MINIX. */ +++/* #undef _MINIX */ +++ +++/* Define to 2 if the system does not provide POSIX.1 features except with +++ this defined. */ +++/* #undef _POSIX_1_SOURCE */ +++ +++/* Define to 1 if you need to in order for `stat' and other things to work. */ +++/* #undef _POSIX_SOURCE */ diff --git a/dependency_support/boost/libbacktrace.BUILD.patch b/dependency_support/boost/libbacktrace.BUILD.patch new file mode 100644 index 00000000..6c8a6ef0 --- /dev/null +++ b/dependency_support/boost/libbacktrace.BUILD.patch @@ -0,0 +1,34 @@ +--- /dev/null ++++ libbacktrace.BUILD +@@ -0,0 +1,30 @@ ++ ++cc_library( ++ name = "libbacktrace", ++ srcs = [ ++ "atomic.c", ++ "backtrace.c", ++ "dwarf.c", ++ "fileline.c", ++ "filenames.h", ++ "internal.h", ++ "mmap.c", ++ "mmapio.c", ++ "posix.c", ++ "print.c", ++ "simple.c", ++ "sort.c", ++ "state.c", ++ "backtrace-supported.h", ++ "config.h", ++ ], ++ hdrs = [ ++ "backtrace.h", ++ ], ++ visibility = [ ++ "//visibility:public", ++ ], ++ includes = [ ++ ".", ++ ] ++) +\ No newline at end of file diff --git a/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel b/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel index ca6a2f71..e1a912fc 100644 --- a/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel +++ b/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel @@ -42,8 +42,8 @@ DEPS = [ "@boost//:python", "@boost//:system", "@boost//:thread", - "@eigen//:eigen3", - "@rules_python//python/cc:current_py_cc_headers", + "@local_config_python//:python_headers", + "@eigen//:eigen", ] DEFINES = [ diff --git a/dependency_support/com_google_absl/com_google_absl.bzl b/dependency_support/com_google_absl/com_google_absl.bzl index c52ff017..be619f48 100644 --- a/dependency_support/com_google_absl/com_google_absl.bzl +++ b/dependency_support/com_google_absl/com_google_absl.bzl @@ -14,16 +14,14 @@ """Registers Bazel workspaces for the GNU readline library.""" -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def com_google_absl(): maybe( - http_archive, + new_git_repository, name = "com_google_absl", - urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20240116.2.tar.gz"], - strip_prefix = "abseil-cpp-20240116.2", - sha256 = "733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc", + tag = "20240116.2", patches = ["@com_google_ortools//patches:abseil-cpp-20240116.2.patch"], patch_args = ["-p1"], ) diff --git a/dependency_support/com_google_ortools/linear_solver.patch b/dependency_support/com_google_ortools/linear_solver.patch new file mode 100644 index 00000000..d7603ef8 --- /dev/null +++ b/dependency_support/com_google_ortools/linear_solver.patch @@ -0,0 +1,16 @@ +--- ortools/linear_solver/BUILD.bazel ++++ ortools/linear_solver/BUILD.bazel +@@ -13,9 +13,10 @@ + + load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") + load("@bazel_skylib//rules:copy_file.bzl", "copy_file") +-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library") +-load("@rules_proto//proto:defs.bzl", "proto_library") +-load("@rules_python//python:proto.bzl", "py_proto_library") ++load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library") ++load("@protobuf//bazel:proto_library.bzl", "proto_library") ++load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library") ++load("@rules_cc//cc:defs.bzl", "cc_library") + + package(default_visibility = ["//visibility:public"]) + diff --git a/dependency_support/com_google_ortools/sat.patch b/dependency_support/com_google_ortools/sat.patch new file mode 100644 index 00000000..caf23b77 --- /dev/null +++ b/dependency_support/com_google_ortools/sat.patch @@ -0,0 +1,18 @@ +--- ortools/sat/BUILD.bazel ++++ ortools/sat/BUILD.bazel +@@ -13,10 +13,11 @@ + + # Home of CP/SAT solver (which includes SAT, max-SAT and PB problems). + +-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library") +-load("@rules_java//java:defs.bzl", "java_proto_library") +-load("@rules_proto//proto:defs.bzl", "proto_library") +-load("@rules_python//python:proto.bzl", "py_proto_library") ++load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library") ++load("@protobuf//bazel:java_proto_library.bzl", "java_proto_library") ++load("@protobuf//bazel:proto_library.bzl", "proto_library") ++load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library") ++load("@rules_cc//cc:defs.bzl", "cc_library") + + package(default_visibility = ["//visibility:public"]) + diff --git a/dependency_support/com_google_protobuf/com_google_protobuf.bzl b/dependency_support/com_google_protobuf/com_google_protobuf.bzl index 0cacf787..1f318be9 100644 --- a/dependency_support/com_google_protobuf/com_google_protobuf.bzl +++ b/dependency_support/com_google_protobuf/com_google_protobuf.bzl @@ -21,7 +21,7 @@ def com_google_protobuf(): maybe( http_archive, name = "com_google_protobuf", - urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protobuf-26.1.tar.gz"], + urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v26.1.tar.gz"], strip_prefix = "protobuf-26.1", sha256 = "4fc5ff1b2c339fb86cd3a25f0b5311478ab081e65ad258c6789359cd84d421f8", patch_args = ["-p1"], diff --git a/dependency_support/com_google_skywater_pdk/build_defs.bzl b/dependency_support/com_google_skywater_pdk/build_defs.bzl index 69e79b08..48a5dd1e 100644 --- a/dependency_support/com_google_skywater_pdk/build_defs.bzl +++ b/dependency_support/com_google_skywater_pdk/build_defs.bzl @@ -22,7 +22,7 @@ load("//pdk:open_road_configuration.bzl", "OpenRoadPdkInfo") def _skywater_corner_impl(ctx): # Choose user supplied root, or default to build directory. - standard_cell_root = ctx.attr.standard_cell_root + standard_cell_root = ctx.label.workspace_root # Choose the build target name as the corner first unless overwritten. corner = ctx.attr.corner if ctx.attr.corner else ctx.attr.name diff --git a/dependency_support/com_google_skywater_pdk/bundled.BUILD.bazel b/dependency_support/com_google_skywater_pdk/bundled.BUILD.bazel index 300ee6d5..0be1a682 100644 --- a/dependency_support/com_google_skywater_pdk/bundled.BUILD.bazel +++ b/dependency_support/com_google_skywater_pdk/bundled.BUILD.bazel @@ -14,8 +14,7 @@ """ BUILD file for Skywater PDK """ -load("@rules_hdl//dependency_support:requirements.bzl", "requirement") -load("@rules_hdl//dependency_support/com_google_skywater_pdk:cell_libraries.bzl", "CELL_LIBRARIES") +load("@rules_hdl_pip_deps//:requirements.bzl", "requirement") load("@rules_python//python:defs.bzl", "py_binary", "py_library") licenses(["notice"]) diff --git a/dependency_support/org_swig/bundled.BUILD.bazel b/dependency_support/org_swig/bundled.BUILD.bazel index 604fbd6a..19b66f80 100644 --- a/dependency_support/org_swig/bundled.BUILD.bazel +++ b/dependency_support/org_swig/bundled.BUILD.bazel @@ -28,10 +28,9 @@ filegroup( output_licenses = ["unencumbered"], visibility = [ "//visibility:public", - ] + ], ) - # find swig/v4_0_0/Lib \( -name '*.swg' -o -name '*.i' \) -print | awk '{gsub(/third_party\/swig\/v4_0_0\//, "", $0); printf("\"%s\",\n", $0) }' filegroup( name = "swig_templates", @@ -889,10 +888,10 @@ includes = [ ] genrule( - name = "config", - srcs = ["@rules_hdl//dependency_support/org_swig:swigconfig.h"], - outs = ["Source/Include/swigconfig.h"], - cmd = "cat $(location @rules_hdl//dependency_support/org_swig:swigconfig.h) > $@", + name = "config", + srcs = ["@rules_hdl//dependency_support/org_swig:swigconfig.h"], + outs = ["Source/Include/swigconfig.h"], + cmd = "cat $(location @rules_hdl//dependency_support/org_swig:swigconfig.h) > $@", ) cc_binary( diff --git a/dependency_support/org_swig/swigconfig.h b/dependency_support/org_swig/swigconfig.h index 40c7e59d..f3cf9e4a 100644 --- a/dependency_support/org_swig/swigconfig.h +++ b/dependency_support/org_swig/swigconfig.h @@ -89,7 +89,7 @@ #define SWIG_CXX "g++" /* Directory for SWIG system-independent libraries */ -#define SWIG_LIB "external/org_swig/Lib" +#define SWIG_LIB "external/+_repo_rules+org_swig/Lib" /* Directory for SWIG system-independent libraries (Unix install on native Windows) */ diff --git a/dependency_support/org_theopenroadproject/build_helper.bzl b/dependency_support/org_theopenroadproject/build_helper.bzl index fd4259ce..2b58b216 100644 --- a/dependency_support/org_theopenroadproject/build_helper.bzl +++ b/dependency_support/org_theopenroadproject/build_helper.bzl @@ -299,7 +299,7 @@ OPENROAD_LIBRARY_DEPS = [ "@boost//:property_tree", "@boost//:stacktrace", "@boost//:thread", - "@eigen//:eigen3", + "@eigen//:eigen", "@com_github_quantamhd_lemon//:lemon", "@org_llvm_openmp//:openmp", "@com_github_gabime_spdlog//:spdlog", diff --git a/dependency_support/org_theopenroadproject/bundled.BUILD.bazel b/dependency_support/org_theopenroadproject/bundled.BUILD.bazel index df6a613f..7c575eeb 100644 --- a/dependency_support/org_theopenroadproject/bundled.BUILD.bazel +++ b/dependency_support/org_theopenroadproject/bundled.BUILD.bazel @@ -1020,7 +1020,7 @@ cc_library( "@boost//:phoenix", "@boost//:polygon", "@boost//:spirit", - "@com_github_gabime_spdlog//:spdlog_with_exceptions", + "@com_github_gabime_spdlog//:spdlog", "@tk_tcl//:tcl", "@net_zlib//:zlib", ], diff --git a/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/asap7.bzl b/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/asap7.bzl index 692328b4..c8ed2dc8 100644 --- a/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/asap7.bzl +++ b/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/asap7.bzl @@ -291,7 +291,8 @@ asap7_cell_library = rule( cfg = "exec", ), "_uncompress": attr.label( - default = Label("@7zip//:7za"), + allow_single_file = True, + default = Label("@org_7zip//:7zz"), executable = True, cfg = "exec", ), diff --git a/dependency_support/pip_requirements.txt b/dependency_support/pip_requirements.txt index 07ef0320..d6103b37 100644 --- a/dependency_support/pip_requirements.txt +++ b/dependency_support/pip_requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # bazel run //dependency_support:pip_requirements.update diff --git a/dependency_support/requirements.bzl b/dependency_support/requirements.bzl deleted file mode 100755 index fe3bccf9..00000000 --- a/dependency_support/requirements.bzl +++ /dev/null @@ -1,83 +0,0 @@ -"""Starlark representation of locked requirements. - -@generated by rules_python pip_parse repository rule. -""" - -load("@rules_python//python:pip.bzl", "pip_utils") -load("@rules_python//python/pip_install:pip_repository.bzl", "group_library", "whl_library") - -all_requirements = ["@rules_hdl_pip_deps_vendored_absl_py//:pkg", "@rules_hdl_pip_deps_vendored_certifi//:pkg", "@rules_hdl_pip_deps_vendored_cffi//:pkg", "@rules_hdl_pip_deps_vendored_charset_normalizer//:pkg", "@rules_hdl_pip_deps_vendored_cocotb//:pkg", "@rules_hdl_pip_deps_vendored_cryptography//:pkg", "@rules_hdl_pip_deps_vendored_dataclasses_json//:pkg", "@rules_hdl_pip_deps_vendored_find_libpython//:pkg", "@rules_hdl_pip_deps_vendored_idna//:pkg", "@rules_hdl_pip_deps_vendored_jwt//:pkg", "@rules_hdl_pip_deps_vendored_klayout//:pkg", "@rules_hdl_pip_deps_vendored_marshmallow//:pkg", "@rules_hdl_pip_deps_vendored_marshmallow_enum//:pkg", "@rules_hdl_pip_deps_vendored_mypy_extensions//:pkg", "@rules_hdl_pip_deps_vendored_packaging//:pkg", "@rules_hdl_pip_deps_vendored_pycparser//:pkg", "@rules_hdl_pip_deps_vendored_requests//:pkg", "@rules_hdl_pip_deps_vendored_typing_extensions//:pkg", "@rules_hdl_pip_deps_vendored_typing_inspect//:pkg", "@rules_hdl_pip_deps_vendored_urllib3//:pkg"] - -all_whl_requirements_by_package = {"absl_py": "@rules_hdl_pip_deps_vendored_absl_py//:whl", "certifi": "@rules_hdl_pip_deps_vendored_certifi//:whl", "cffi": "@rules_hdl_pip_deps_vendored_cffi//:whl", "charset_normalizer": "@rules_hdl_pip_deps_vendored_charset_normalizer//:whl", "cocotb": "@rules_hdl_pip_deps_vendored_cocotb//:whl", "cryptography": "@rules_hdl_pip_deps_vendored_cryptography//:whl", "dataclasses_json": "@rules_hdl_pip_deps_vendored_dataclasses_json//:whl", "find_libpython": "@rules_hdl_pip_deps_vendored_find_libpython//:whl", "idna": "@rules_hdl_pip_deps_vendored_idna//:whl", "jwt": "@rules_hdl_pip_deps_vendored_jwt//:whl", "klayout": "@rules_hdl_pip_deps_vendored_klayout//:whl", "marshmallow": "@rules_hdl_pip_deps_vendored_marshmallow//:whl", "marshmallow_enum": "@rules_hdl_pip_deps_vendored_marshmallow_enum//:whl", "mypy_extensions": "@rules_hdl_pip_deps_vendored_mypy_extensions//:whl", "packaging": "@rules_hdl_pip_deps_vendored_packaging//:whl", "pycparser": "@rules_hdl_pip_deps_vendored_pycparser//:whl", "requests": "@rules_hdl_pip_deps_vendored_requests//:whl", "typing_extensions": "@rules_hdl_pip_deps_vendored_typing_extensions//:whl", "typing_inspect": "@rules_hdl_pip_deps_vendored_typing_inspect//:whl", "urllib3": "@rules_hdl_pip_deps_vendored_urllib3//:whl"} - -all_whl_requirements = all_whl_requirements_by_package.values() - -all_data_requirements = ["@rules_hdl_pip_deps_vendored_absl_py//:data", "@rules_hdl_pip_deps_vendored_certifi//:data", "@rules_hdl_pip_deps_vendored_cffi//:data", "@rules_hdl_pip_deps_vendored_charset_normalizer//:data", "@rules_hdl_pip_deps_vendored_cocotb//:data", "@rules_hdl_pip_deps_vendored_cryptography//:data", "@rules_hdl_pip_deps_vendored_dataclasses_json//:data", "@rules_hdl_pip_deps_vendored_find_libpython//:data", "@rules_hdl_pip_deps_vendored_idna//:data", "@rules_hdl_pip_deps_vendored_jwt//:data", "@rules_hdl_pip_deps_vendored_klayout//:data", "@rules_hdl_pip_deps_vendored_marshmallow//:data", "@rules_hdl_pip_deps_vendored_marshmallow_enum//:data", "@rules_hdl_pip_deps_vendored_mypy_extensions//:data", "@rules_hdl_pip_deps_vendored_packaging//:data", "@rules_hdl_pip_deps_vendored_pycparser//:data", "@rules_hdl_pip_deps_vendored_requests//:data", "@rules_hdl_pip_deps_vendored_typing_extensions//:data", "@rules_hdl_pip_deps_vendored_typing_inspect//:data", "@rules_hdl_pip_deps_vendored_urllib3//:data"] - -_packages = [("rules_hdl_pip_deps_vendored_absl_py", "absl-py==1.4.0 --hash=sha256:0d3fe606adfa4f7db64792dd4c7aee4ee0c38ab75dfd353b7a83ed3e957fcb47 --hash=sha256:d2c244d01048ba476e7c080bd2c6df5e141d211de80223460d5b3b8a2a58433d"), ("rules_hdl_pip_deps_vendored_certifi", "certifi==2023.7.22 --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"), ("rules_hdl_pip_deps_vendored_cffi", "cffi==1.15.1 --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0"), ("rules_hdl_pip_deps_vendored_charset_normalizer", "charset-normalizer==3.2.0 --hash=sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96 --hash=sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c --hash=sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710 --hash=sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706 --hash=sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020 --hash=sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252 --hash=sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad --hash=sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329 --hash=sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a --hash=sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f --hash=sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6 --hash=sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4 --hash=sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a --hash=sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46 --hash=sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2 --hash=sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23 --hash=sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace --hash=sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd --hash=sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982 --hash=sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10 --hash=sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2 --hash=sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea --hash=sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09 --hash=sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5 --hash=sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149 --hash=sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489 --hash=sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9 --hash=sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80 --hash=sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592 --hash=sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3 --hash=sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6 --hash=sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed --hash=sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c --hash=sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200 --hash=sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a --hash=sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e --hash=sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d --hash=sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6 --hash=sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623 --hash=sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669 --hash=sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3 --hash=sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa --hash=sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9 --hash=sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2 --hash=sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f --hash=sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1 --hash=sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4 --hash=sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a --hash=sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8 --hash=sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3 --hash=sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029 --hash=sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f --hash=sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959 --hash=sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22 --hash=sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7 --hash=sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952 --hash=sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346 --hash=sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e --hash=sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d --hash=sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299 --hash=sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd --hash=sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a --hash=sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3 --hash=sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037 --hash=sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94 --hash=sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c --hash=sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858 --hash=sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a --hash=sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449 --hash=sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c --hash=sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918 --hash=sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1 --hash=sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c --hash=sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac --hash=sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa"), ("rules_hdl_pip_deps_vendored_cocotb", "cocotb==1.8.0 --hash=sha256:0321f18e8e399dd011d4f2bfea8d3fbdfd19c8217a368867a43e586763af0be1 --hash=sha256:0dcf0dda9d21caeeb34b0be69167b2e0034fe9da524945c3a67f58487acd8027 --hash=sha256:17dd8bca4ac9e4ef6085d5be15172191d8d55c56ad15f5d1d7afd007bc40408f --hash=sha256:19dab657c314664e012f1d9f7d3ef78c8f01b030c5ba9f89b48488584768757b --hash=sha256:38c8ad50cfe00180296b7d3a9414b54f6127d6c82d600a547e4cced28c5b4b87 --hash=sha256:40bd06d1f0a2bf53a590eccf0229286f47be7208c401d209a190d020f82fd074 --hash=sha256:4d64992f656ef42b480e71f6445f1c122e54a4ac2a2de28dcdbf596794636243 --hash=sha256:561d1146701b1526288c10b885a136e425b644cb7ef03db22bed3d47066270d8 --hash=sha256:575b388a4461cc96dfe5b919a19b567bd2f6b6162aefd279be690a0cd7edda4c --hash=sha256:632ac31d87d191d3339ca291354e17128c4de2857237fd020dcd1bdf018cbe2c --hash=sha256:65e92655403b2e6ea18fbd8cfeea1a0a708db9402334ae7d812f1b687092ef66 --hash=sha256:6e6495997ddb737dbcd47aa00b29d11f2237df8521e9b52064e8f59641231b4a --hash=sha256:81b7b10965916271646a2c1d975596558d15b107e5337fe566ffe9262289a4d7 --hash=sha256:9345c58ed2bb60fe89064bdf27ed7c6c5b642fb81dc6520640301b5e4f8b1486 --hash=sha256:94b5d2f2c940b2b81d04cd3e448a2ce445e02ae13304f31eafdd694e148dcd70 --hash=sha256:997f1734d1bcc7924f1d931793e95d17bc46e5ee47ce566ae7584168d3db41d2 --hash=sha256:99ae6d53d900c13f5f26e4b40fc7040edadf7c04786118e68f163dddbe6b78f5 --hash=sha256:9b8c1c169acef36c56b861f2d1c296842b89a3d7e5bb4e0ec4eff79a914de780 --hash=sha256:9daf891facef23536e600ce98ad43169452224d1b9aa847488c37b2da9fe9506 --hash=sha256:a9546cb1d05c247cb726fc3479cd031b84a80822163304037d6fcc6f517e3340 --hash=sha256:af6bd03561fb819eb7b4f2080fada2315df3a7c4833380a743dabe7266384068 --hash=sha256:bfe75aea1e82ef6aeb2fbc300ca9a0c5f25b5b89031fb7782c5f067318b10d53 --hash=sha256:c356d1556d1266822fbcb21361ba1449087e758a66b83b34b03d41e648060634 --hash=sha256:caa511e5bf58b6b41453a46965cc49fd7b943e398edd3df4516c89f24e381862 --hash=sha256:caee9f42cd645236257205b9435ea46043174c6970e59b1182b5fb27820ffb16 --hash=sha256:cbb335b7d6d1806da27f213dcb7d05f4841e07e490c5d6456f4d9a90e0acc109 --hash=sha256:cccab7fd2835e39c9680df672446883b4ae3b8359574f371699853ed4aa7547f --hash=sha256:cf8ccbc4a7afba4c18714f4ba44af723110e26087c1b355b2056c6a58614a77d --hash=sha256:ee4342cecd3a265a45334f127c66223609288cc3a8c138fc65d89d9ba74f8de5 --hash=sha256:f9d126b0fa0d15fe2234b1c65665c5ffa53aa2ca9b16f80d96faddd145235620 --hash=sha256:fa82154e4526fb5fe884bef33bd21ab91130a1dbb109e11d5ef32fa49dd5c865"), ("rules_hdl_pip_deps_vendored_cryptography", "cryptography==41.0.4 --hash=sha256:004b6ccc95943f6a9ad3142cfabcc769d7ee38a3f60fb0dddbfb431f818c3a67 --hash=sha256:047c4603aeb4bbd8db2756e38f5b8bd7e94318c047cfe4efeb5d715e08b49311 --hash=sha256:0d9409894f495d465fe6fda92cb70e8323e9648af912d5b9141d616df40a87b8 --hash=sha256:23a25c09dfd0d9f28da2352503b23e086f8e78096b9fd585d1d14eca01613e13 --hash=sha256:2ed09183922d66c4ec5fdaa59b4d14e105c084dd0febd27452de8f6f74704143 --hash=sha256:35c00f637cd0b9d5b6c6bd11b6c3359194a8eba9c46d4e875a3660e3b400005f --hash=sha256:37480760ae08065437e6573d14be973112c9e6dcaf5f11d00147ee74f37a3829 --hash=sha256:3b224890962a2d7b57cf5eeb16ccaafba6083f7b811829f00476309bce2fe0fd --hash=sha256:5a0f09cefded00e648a127048119f77bc2b2ec61e736660b5789e638f43cc397 --hash=sha256:5b72205a360f3b6176485a333256b9bcd48700fc755fef51c8e7e67c4b63e3ac --hash=sha256:7e53db173370dea832190870e975a1e09c86a879b613948f09eb49324218c14d --hash=sha256:7febc3094125fc126a7f6fb1f420d0da639f3f32cb15c8ff0dc3997c4549f51a --hash=sha256:80907d3faa55dc5434a16579952ac6da800935cd98d14dbd62f6f042c7f5e839 --hash=sha256:86defa8d248c3fa029da68ce61fe735432b047e32179883bdb1e79ed9bb8195e --hash=sha256:8ac4f9ead4bbd0bc8ab2d318f97d85147167a488be0e08814a37eb2f439d5cf6 --hash=sha256:93530900d14c37a46ce3d6c9e6fd35dbe5f5601bf6b3a5c325c7bffc030344d9 --hash=sha256:9eeb77214afae972a00dee47382d2591abe77bdae166bda672fb1e24702a3860 --hash=sha256:b5f4dfe950ff0479f1f00eda09c18798d4f49b98f4e2006d644b3301682ebdca --hash=sha256:c3391bd8e6de35f6f1140e50aaeb3e2b3d6a9012536ca23ab0d9c35ec18c8a91 --hash=sha256:c880eba5175f4307129784eca96f4e70b88e57aa3f680aeba3bab0e980b0f37d --hash=sha256:cecfefa17042941f94ab54f769c8ce0fe14beff2694e9ac684176a2535bf9714 --hash=sha256:e40211b4923ba5a6dc9769eab704bdb3fbb58d56c5b336d30996c24fcf12aadb --hash=sha256:efc8ad4e6fc4f1752ebfb58aefece8b4e3c4cae940b0994d43649bdfce8d0d4f"), ("rules_hdl_pip_deps_vendored_dataclasses_json", "dataclasses-json==0.5.7 --hash=sha256:bc285b5f892094c3a53d558858a88553dd6a61a11ab1a8128a0e554385dcc5dd --hash=sha256:c2c11bc8214fbf709ffc369d11446ff6945254a7f09128154a7620613d8fda90"), ("rules_hdl_pip_deps_vendored_find_libpython", "find-libpython==0.3.0 --hash=sha256:6e7fe5d9af7fad6dc066cb5515a0e9c90a71f1feb2bb2f8e4cdbb4f83276e9e5 --hash=sha256:93fa14c8d007a7f9e6b650a486e249b49f01fd8d45b83ecf080a78b1a7011214"), ("rules_hdl_pip_deps_vendored_idna", "idna==3.4 --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"), ("rules_hdl_pip_deps_vendored_jwt", "jwt==1.3.1 --hash=sha256:61c9170f92e736b530655e75374681d4fcca9cfa8763ab42be57353b2b203494"), ("rules_hdl_pip_deps_vendored_klayout", "klayout==0.29.0 --hash=sha256:0256e848cba2b4b2a18402061750c9c23bca316079f989722804a4c52b44cfcc --hash=sha256:16d22f316ec50672f0eef99864e33918d5dd3c9fff88463c44c4f9a95201541c --hash=sha256:1df13dfbc3d7be89b7bf5d739f83285a03dec5a25baa752a92637068b006e698 --hash=sha256:268b4b34db44c756e182f3cd8f3355f2dedd367af8143cab694992444dc27a09 --hash=sha256:2fa4f8e7a3ab31bf8f94a5927495cacb8e6feeb193a5007f29d50518812d38df --hash=sha256:303c831c57a40815863bfecbe77ec811f1f6a6b94397d2071d68c8466c38aeea --hash=sha256:350d396bc843e31aadf24b66d2dddfdc9a2e13f73931fe34c8d266fce7e9053e --hash=sha256:52a5201257005c8f18d3e60ef912d88c5461b2c09bf0d76fd41790461fadac53 --hash=sha256:5ec36645819ac636ae80dfdd159c230a0ce92c24a25a220937b1b1b02bb1e445 --hash=sha256:64b7a1b7745f29679d81956d66953cd322400602550d088934443c35ef0482b8 --hash=sha256:6c43e729070ee5f6fcbc8e4f312fd0cf3ce40bfcf3b43c49325193d902b2f7a8 --hash=sha256:6fbb3869c861e4999b9bd910f6cebdd63f5f32c68726b58ea6e0e985f3fdb93b --hash=sha256:78d0646362dac7300cbf3a0839dde6c9d59eb2d34be610d624ae6fdfdb866c42 --hash=sha256:7907b5cd5d291b4bf67456496139c79c729377499cd672e25dd13bf9316f3294 --hash=sha256:8a9c2987bb33b0dd28095448ea73d4dac112ba28877734a485b181605b48ef77 --hash=sha256:9bf1504c626341f0f22b1c275acea3f4452ef300867fdab5fcd97ab8cb04ae3c --hash=sha256:9d424292240dc0d34d6a3f3fe049ea70568eb24be84c2257b448b304eadaba16 --hash=sha256:9e0f8c6271d641f16fb29287e1d6b474f96aca6613ecc2cea362ee8b0caef05a --hash=sha256:a668412f7637d53919afaa4bb9b866e310cb27a2d447f5e2e0bea5c2498b818b --hash=sha256:a9375fafeb8849ffe2e2dce8c3f990ad473c84b722cba0afc4748569e3fb7960 --hash=sha256:a985702e6a56a3417d163b136467598faadf74bcb099bc5364cb08b397a0bcca --hash=sha256:aaa427d9025c580f9bfac477751bda66731587b5c9413110e01ae33753fa16b9 --hash=sha256:ab1240396de04d64ea95eaee609d46335d508e8425508434fc91853d12ce6778 --hash=sha256:ae6e5f547d8801a90784c0c05cf6d1eb693e238a56af8648c0fb755b2fc56230 --hash=sha256:b1c0186a3a27a05060e8f643dfcecf9e0137829df68e228a28b72619ed7a37e6 --hash=sha256:b1d56aa41e2530d167dae9f4e40b044464dac78e1f59a45a229927391058daec --hash=sha256:b6a8a1def51c4570c7b60c16001b659537100ed192a370ff352c1a006c125b6f --hash=sha256:c04e1da03f23452a413268f185a3a0fae15f0c9e5e75786047d4fdc356e21963 --hash=sha256:c1b569216c3915fa3c7982586c9abe50f70eacc1b3efc1252e0ff6d2cd1c6d3e --hash=sha256:c8ad026d70916d8b580fd6494f605d57d0e81cbd476f64c51b0394c34e7987be --hash=sha256:ce29bda3f19853aa9c26dea73bcb8562b96599570e1e1de2c3940b03758ae669 --hash=sha256:d66150d5938c47d4eb5ed4987430b34824869c34ab6bd7e2e9fbd2b56df234b2 --hash=sha256:e620ffe51ad92f54719702ba1a193dc17df679b2097618b9518ebbfa1ae96680 --hash=sha256:e9ecd58bae7063a32885e48b48b4b7b6e516dbea3e28f78efbccd75bcfa25872 --hash=sha256:f2782eb9d6bcaa51db67a298e0fee098880caf56be3514bdaa1590098c449cdf --hash=sha256:fb94e285d6591a1aa159e4c0eb93c930f31097585266dab43ca91e4c916ab119 --hash=sha256:ffd221a2e8cb2d8e4538c6bdf2ffd80f0b696455e8e2090c67ba715e70da3873"), ("rules_hdl_pip_deps_vendored_marshmallow", "marshmallow==3.20.1 --hash=sha256:5d2371bbe42000f2b3fb5eaa065224df7d8f8597bc19a1bbfa5bfe7fba8da889 --hash=sha256:684939db93e80ad3561392f47be0230743131560a41c5110684c16e21ade0a5c"), ("rules_hdl_pip_deps_vendored_marshmallow_enum", "marshmallow-enum==1.5.1 --hash=sha256:38e697e11f45a8e64b4a1e664000897c659b60aa57bfa18d44e226a9920b6e58 --hash=sha256:57161ab3dbfde4f57adeb12090f39592e992b9c86d206d02f6bd03ebec60f072"), ("rules_hdl_pip_deps_vendored_mypy_extensions", "mypy-extensions==1.0.0 --hash=sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d --hash=sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"), ("rules_hdl_pip_deps_vendored_packaging", "packaging==23.1 --hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"), ("rules_hdl_pip_deps_vendored_pycparser", "pycparser==2.21 --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"), ("rules_hdl_pip_deps_vendored_requests", "requests==2.28.2 --hash=sha256:64299f4909223da747622c030b781c0d7811e359c37124b4bd368fb8c6518baa --hash=sha256:98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf"), ("rules_hdl_pip_deps_vendored_typing_extensions", "typing-extensions==4.8.0 --hash=sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0 --hash=sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"), ("rules_hdl_pip_deps_vendored_typing_inspect", "typing-inspect==0.9.0 --hash=sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f --hash=sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78"), ("rules_hdl_pip_deps_vendored_urllib3", "urllib3==1.26.16 --hash=sha256:8d36afa7616d8ab714608411b4a3b13e58f463aee519024578e062e141dce20f --hash=sha256:8f135f6502756bde6b2a9b28989df5fbe87c9970cecaa69041edcce7f0589b14")] -_config = {"download_only": False, "enable_implicit_namespace_pkgs": False, "environment": {}, "envsubst": [], "extra_pip_args": [], "isolated": True, "pip_data_exclude": [], "python_interpreter": "python3", "python_interpreter_target": "@python39_host//:python", "quiet": True, "repo": "rules_hdl_pip_deps_vendored", "repo_prefix": "rules_hdl_pip_deps_vendored_", "timeout": 600} -_annotations = {} - -def requirement(name): - return "@rules_hdl_pip_deps_vendored_{}//:{}".format(pip_utils.normalize_name(name), "pkg") - -def whl_requirement(name): - return "@rules_hdl_pip_deps_vendored_{}//:{}".format(pip_utils.normalize_name(name), "whl") - -def data_requirement(name): - return "@rules_hdl_pip_deps_vendored_{}//:{}".format(pip_utils.normalize_name(name), "data") - -def dist_info_requirement(name): - return "@rules_hdl_pip_deps_vendored_{}//:{}".format(pip_utils.normalize_name(name), "dist_info") - -def entry_point(pkg, script = None): - if not script: - script = pkg - return "@rules_hdl_pip_deps_vendored_" + pip_utils.normalize_name(pkg) + "//:rules_python_wheel_entry_point_" + script - -def _get_annotation(requirement): - # This expects to parse `setuptools==58.2.0 --hash=sha256:2551203ae6955b9876741a26ab3e767bb3242dafe86a32a749ea0d78b6792f11` - # down to `setuptools`. - name = requirement.split(" ")[0].split("=")[0].split("[")[0] - return _annotations.get(name) - -def install_deps(**whl_library_kwargs): - """Repository rule macro. Install dependencies from `pip_parse`. - - Args: - **whl_library_kwargs: Additional arguments which will flow to underlying - `whl_library` calls. See pip_repository.bzl for details. - """ - - # Set up the requirement groups - all_requirement_groups = {} - - requirement_group_mapping = { - requirement: group_name - for group_name, group_requirements in all_requirement_groups.items() - for requirement in group_requirements - } - - group_repo = "rules_hdl_pip_deps_vendored__groups" - group_library( - name = group_repo, - repo_prefix = "rules_hdl_pip_deps_vendored_", - groups = all_requirement_groups, - ) - - # Install wheels which may be participants in a group - whl_config = dict(_config) - whl_config.update(whl_library_kwargs) - - for name, requirement in _packages: - group_name = requirement_group_mapping.get(name.replace("rules_hdl_pip_deps_vendored_", "")) - group_deps = all_requirement_groups.get(group_name, []) - - whl_library( - name = name, - requirement = requirement, - group_name = group_name, - group_deps = group_deps, - annotation = _get_annotation(requirement), - **whl_config - ) diff --git a/dependency_support/verilator/private/verilator_utils.bzl b/dependency_support/verilator/private/verilator_utils.bzl index 5696ab79..69f33784 100644 --- a/dependency_support/verilator/private/verilator_utils.bzl +++ b/dependency_support/verilator/private/verilator_utils.bzl @@ -56,7 +56,6 @@ def _verilator_bisonpre_impl(ctx): bison_toolchain = ctx.toolchains["@rules_bison//bison:toolchain_type"].bison_toolchain args = ctx.actions.args() - args.add(ctx.file.bisonpre) args.add("--yacc", bison_toolchain.bison_tool.executable) args.add("-d") args.add("-v") @@ -79,9 +78,9 @@ def _verilator_bisonpre_impl(ctx): outputs = outputs, inputs = [ctx.file.yacc_src], tools = tools, - executable = ctx.executable._process_wrapper, + executable = ctx.executable.bisonpre, arguments = [args], - mnemonic = "VerilatorBisonPre", + mnemonic = "BisonPre", use_default_shell_env = False, env = bison_env, ) @@ -96,10 +95,11 @@ verilator_bisonpre = rule( implementation = _verilator_bisonpre_impl, attrs = { "bisonpre": attr.label( - doc = "The path to the `bisonpre` tool.", allow_single_file = True, - mandatory = True, cfg = "exec", + doc = "The path to the `bisonpre` tool.", + executable = True, + mandatory = True, ), "out_hdr": attr.output( mandatory = True, diff --git a/extensions.bzl b/extensions.bzl new file mode 100644 index 00000000..a57d2df2 --- /dev/null +++ b/extensions.bzl @@ -0,0 +1,62 @@ +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") +load("//dependency_support/com_google_skywater_pdk:cell_libraries.bzl", "CELL_LIBRARIES") + +def _pdk_impl(module_ctx): + root_direct_deps = [] + root_direct_dev_deps = [] + pdk_repo_names = {} + + for module in module_ctx.modules: + for pdk in module.tags.pdk: + for library_name in pdk.libraries: + name = pdk.name + "_" + library_name + + if module.is_root: + if module_ctx.is_dev_dependency(pdk): + root_direct_dev_deps.append(name) + else: + root_direct_deps.append(name) + + if name not in pdk_repo_names: + pdk_repo_names[name] = () + git_repository( + name = name, + commit = CELL_LIBRARIES[library_name]["commit"], + remote = "https://foss-eda-tools.googlesource.com/skywater-pdk/libs/%s.git" % library_name, + shallow_since = CELL_LIBRARIES[library_name]["shallow_since"], + build_file_content = """ +load("@rules_hdl//dependency_support/com_google_skywater_pdk:declare_cell_library.bzl", "declare_cell_library") +declare_cell_library("{}", "{}") +""".format(name, library_name), + patches = CELL_LIBRARIES[library_name].get("patches", []), + # Strip one directory level. Useful for patches generated by git. + patch_args = [ + "-p1", + ], + ) + + return module_ctx.extension_metadata( + root_module_direct_deps = root_direct_deps, + root_module_direct_dev_deps = root_direct_dev_deps, + ) + +_PDK_TAG_ATTRS = { + "name": attr.string( + mandatory = True, + doc = """A name for the repository. +The name must be unique within the set of names registered by this extension. +""", + ), + "libraries": attr.string_list( + doc = "List of standard cell libraries.", + ), +} + +hdl_ext = module_extension( + implementation = _pdk_impl, + tag_classes = { + "pdk": tag_class( + attrs = _PDK_TAG_ATTRS, + ), + }, +) diff --git a/flows/flows.bzl b/flows/flows.bzl index 8f3233f2..4698f345 100644 --- a/flows/flows.bzl +++ b/flows/flows.bzl @@ -41,7 +41,7 @@ FlowStepInfo = provider( script_prefix = """ #!/usr/bin/env bash -export RUNFILES="${RUNFILES:-$0.runfiles/rules_hdl}" +export RUNFILES="${RUNFILES:-$0.runfiles/_main}" """ tcl_script_prefix = "set runfiles_dir $::env(RUNFILES)" diff --git a/flows/openroad/build_defs.bzl b/flows/openroad/build_defs.bzl index f99fcefc..ec018737 100644 --- a/flows/openroad/build_defs.bzl +++ b/flows/openroad/build_defs.bzl @@ -58,7 +58,7 @@ def assemble_openroad_step( commands = [script_prefix] # TODO(amfv): Compute TCL_LIBRARY properly instead of hardcoding it. - commands.append("export TCL_LIBRARY=${RUNFILES}/../tk_tcl/library") + commands.append("export TCL_LIBRARY=${RUNFILES}/../+_repo_rules+tk_tcl/library") exec_openroad = """{openroad} {args} "$@"\n""".format( openroad = "${RUNFILES}/" + openroad_executable.short_path, diff --git a/flows/yosys/build_defs.bzl b/flows/yosys/build_defs.bzl index fb3dc5b3..803892d1 100644 --- a/flows/yosys/build_defs.bzl +++ b/flows/yosys/build_defs.bzl @@ -44,8 +44,8 @@ def _yosys_synth_file_step_impl(ctx): # TODO(amfv): Compute Yosys data environment variables properly instead of hardcoding them. commands.extend([ - "export YOSYS_DATDIR=${RUNFILES}/../at_clifford_yosys/techlibs/", - "export ABC=${RUNFILES}/../edu_berkeley_abc/abc", + "export YOSYS_DATDIR=${RUNFILES}/../+_repo_rules+at_clifford_yosys/techlibs/", + "export ABC=${{RUNFILES}}/{}".format(ctx.executable._abc.short_path), ]) exec_yosys = """{yosys} {args} "$@"\n""".format( @@ -88,6 +88,11 @@ yosys_synth_file_step = rule( allow_single_file = True, doc = "Tcl script controlling Yosys synthesis, using the Flow Step API environment variables", ), + "_abc": attr.label( + default = Label("@edu_berkeley_abc//:abc"), + executable = True, + cfg = "exec", + ), "_yosys": attr.label( default = Label("@at_clifford_yosys//:yosys"), executable = True, diff --git a/gds_write/BUILD b/gds_write/BUILD index 72fc6941..28684eb6 100644 --- a/gds_write/BUILD +++ b/gds_write/BUILD @@ -14,8 +14,8 @@ # GDS write tool package. +load("@rules_hdl_pip_deps//:requirements.bzl", "requirement") load("@rules_python//python:defs.bzl", "py_binary") -load("//dependency_support:requirements.bzl", "requirement") package( default_applicable_licenses = ["//:package_license"], diff --git a/pdk/liberty/BUILD b/pdk/liberty/BUILD index a62ec56b..909a1fd6 100644 --- a/pdk/liberty/BUILD +++ b/pdk/liberty/BUILD @@ -14,8 +14,8 @@ """ASAP7 PDK Package""" +load("@rules_hdl_pip_deps//:requirements.bzl", "requirement") load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") -load("//dependency_support:requirements.bzl", "requirement") package( default_applicable_licenses = ["//:package_license"], diff --git a/pdk/proto/BUILD b/pdk/proto/BUILD index cba9d193..9e7f67bf 100644 --- a/pdk/proto/BUILD +++ b/pdk/proto/BUILD @@ -12,8 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_python//python:proto.bzl", "py_proto_library") +load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library") +load("@protobuf//bazel:proto_library.bzl", "proto_library") +load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library") package( default_applicable_licenses = ["//:package_license"], @@ -33,7 +34,7 @@ proto_library( cc_proto_library( name = "pdk_info_cc_proto", deps = [":pdk_info_proto"], -) # buildifier: disable=native-cc-proto +) py_proto_library( name = "pdk_info_py_proto", diff --git a/place_and_route/open_road.bzl b/place_and_route/open_road.bzl index ae979d52..81d88b3c 100644 --- a/place_and_route/open_road.bzl +++ b/place_and_route/open_road.bzl @@ -264,7 +264,7 @@ def openroad_command(ctx, commands, input_db = None, step_name = None, inputs = "DEFAULT_INPUT_DRIVER_CELL": stdcell_info.default_input_driver_cell, "DEFAULT_OUTPUT_LOAD": stdcell_info.default_output_load, "QT_QPA_PLATFORM": ctx.attr.qt_qpa_platform, - "TCL_LIBRARY": openroad_runfiles_dir + "/tk_tcl/library", + "TCL_LIBRARY": openroad_runfiles_dir + "/+_repo_rules+tk_tcl/library", }, execution_requirements = execution_requirements, mnemonic = "OpenROAD", diff --git a/static_timing/build_defs.bzl b/static_timing/build_defs.bzl index ab6364fc..abf6de78 100644 --- a/static_timing/build_defs.bzl +++ b/static_timing/build_defs.bzl @@ -44,7 +44,7 @@ def _run_opensta_impl(ctx): "LIBERTY": default_liberty_file.path, "LOGFILE": sta_log.path, "NETLIST": netlist.path, - "TCL_LIBRARY": opensta_runfiles_dir + "/tk_tcl/library", + "TCL_LIBRARY": opensta_runfiles_dir + "/+_repo_rules+tk_tcl/library", "TOP": synth_info.top_module, } diff --git a/synthesis/BUILD.bazel b/synthesis/BUILD.bazel index 28ce3c4c..8d168553 100644 --- a/synthesis/BUILD.bazel +++ b/synthesis/BUILD.bazel @@ -14,9 +14,10 @@ # Synthesis tool package. +load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library") +load("@protobuf//bazel:proto_library.bzl", "proto_library") +load("@protobuf//bazel:py_proto_library.bzl", "py_proto_library") load("@rules_pkg//:pkg.bzl", "pkg_tar") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_python//python:proto.bzl", "py_proto_library") package( default_applicable_licenses = ["//:package_license"], @@ -47,4 +48,4 @@ py_proto_library( cc_proto_library( name = "power_performance_area_cc_proto", deps = [":power_performance_area_proto"], -) # buildifier: disable=native-cc-proto +) diff --git a/synthesis/build_defs.bzl b/synthesis/build_defs.bzl index d61bd339..739906ea 100644 --- a/synthesis/build_defs.bzl +++ b/synthesis/build_defs.bzl @@ -173,8 +173,8 @@ def _synthesize_design_impl(ctx): inputs.append(ha_fa_mapping[DefaultInfo].files.to_list()[0]) env = { - "ABC": yosys_runfiles_dir + "/edu_berkeley_abc/abc", - "YOSYS_DATDIR": yosys_runfiles_dir + "/at_clifford_yosys/techlibs/", + "ABC": yosys_runfiles_dir + "/+_repo_rules+edu_berkeley_abc/abc", + "YOSYS_DATDIR": yosys_runfiles_dir + "/+_repo_rules+at_clifford_yosys/techlibs/", } for k, v in script_env_files.items(): diff --git a/tools/BUILD b/tools/BUILD index b1b9cddd..845fd7cc 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@rules_hdl_pip_deps//:requirements.bzl", "requirement") load("@rules_python//python:defs.bzl", "py_binary") -load("//dependency_support:requirements.bzl", "requirement") package( default_applicable_licenses = ["//:package_license"], From a98e2ca382c9044359ef38655969d36ed0094306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Fri, 21 Feb 2025 14:32:23 +0100 Subject: [PATCH 02/10] dependency_support: Remove deprecated `WORKSPACE` dependencies --- .../at_clifford_icestorm.bzl | 30 -------- .../at_clifford_icestorm/workspace.bzl | 30 -------- .../at_clifford_yosys/at_clifford_yosys.bzl | 34 --------- .../bazel_skylib/bazel_skylib.bzl | 29 -------- dependency_support/boost/boost.bzl | 40 ----------- dependency_support/boost/downgrade_lzma.patch | 17 ----- .../com_github_fmtlib_fmt.bzl | 30 -------- .../com_github_gabime_spdlog.bzl | 30 -------- .../com_github_libbacktrace.bzl | 30 -------- .../com_github_ninja_build_ninja.bzl | 30 -------- .../com_github_quantamhd_lemon.bzl | 37 ---------- .../com_github_westes_flex.bzl | 26 ------- .../com_github_yosyshq_nextpnr.bzl | 33 --------- .../com_github_yosyshq_prjtrellis.bzl | 30 -------- .../com_github_yosyshq_prjtrellis_db.bzl | 30 -------- .../com_google_googletest.bzl | 27 -------- .../com_google_ortools/com_google_ortools.bzl | 62 ----------------- .../com_google_protobuf.bzl | 29 -------- .../com_google_skywater_pdk.bzl | 59 ---------------- .../com_icarus_iverilog.bzl | 30 -------- .../com_opencircuitdesign_magic.bzl | 34 --------- .../com_opencircuitdesign_netgen.bzl | 30 -------- .../edu_berkeley_abc/edu_berkeley_abc.bzl | 30 -------- .../net_invisible_island_ncurses.bzl | 32 --------- dependency_support/net_zlib/net_zlib.bzl | 30 -------- dependency_support/org_fftw/org_fftw.bzl | 30 -------- .../org_gnu_bison/org_gnu_bison.bzl | 38 ---------- .../org_gnu_glpk/org_gnu_glpk.bzl | 34 --------- .../org_gnu_gperf/org_gnu_gperf.bzl | 31 --------- .../org_gnu_readline/org_gnu_readline.bzl | 35 ---------- .../org_llvm_openmp/org_llvm_openmp.bzl | 30 -------- .../org_nixos_patchelf/org_nixos_patchelf.bzl | 30 -------- .../org_pcre_ftp/org_pcre_ftp.bzl | 30 -------- .../org_sourceware_bzip2.bzl | 31 --------- .../org_sourceware_libffi.bzl | 30 -------- dependency_support/org_swig/org_swig.bzl | 30 -------- .../org_theopenroadproject.bzl | 37 ---------- .../org_theopenroadproject_asap7_pdk_r1p7.bzl | 30 -------- .../org_theopenroadproject_asap7sc6t_26.bzl | 30 -------- .../org_theopenroadproject_asap7sc7p5t_27.bzl | 30 -------- .../org_theopenroadproject_asap7sc7p5t_28.bzl | 30 -------- .../rules_license/rules_license.bzl | 29 -------- dependency_support/tk_tcl/tk_tcl.bzl | 30 -------- dependency_support/verilator/verilator.bzl | 28 -------- init.bzl | 69 ------------------- 45 files changed, 1481 deletions(-) delete mode 100644 dependency_support/at_clifford_icestorm/at_clifford_icestorm.bzl delete mode 100644 dependency_support/at_clifford_icestorm/workspace.bzl delete mode 100644 dependency_support/at_clifford_yosys/at_clifford_yosys.bzl delete mode 100644 dependency_support/bazel_skylib/bazel_skylib.bzl delete mode 100644 dependency_support/boost/boost.bzl delete mode 100644 dependency_support/boost/downgrade_lzma.patch delete mode 100644 dependency_support/com_github_fmtlib_fmt/com_github_fmtlib_fmt.bzl delete mode 100644 dependency_support/com_github_gabime_spdlog/com_github_gabime_spdlog.bzl delete mode 100644 dependency_support/com_github_libbacktrace/com_github_libbacktrace.bzl delete mode 100644 dependency_support/com_github_ninja_build_ninja/com_github_ninja_build_ninja.bzl delete mode 100644 dependency_support/com_github_quantamhd_lemon/com_github_quantamhd_lemon.bzl delete mode 100644 dependency_support/com_github_westes_flex/com_github_westes_flex.bzl delete mode 100644 dependency_support/com_github_yosyshq_nextpnr/com_github_yosyshq_nextpnr.bzl delete mode 100644 dependency_support/com_github_yosyshq_prjtrellis/com_github_yosyshq_prjtrellis.bzl delete mode 100644 dependency_support/com_github_yosyshq_prjtrellis_db/com_github_yosyshq_prjtrellis_db.bzl delete mode 100644 dependency_support/com_google_googletest/com_google_googletest.bzl delete mode 100644 dependency_support/com_google_ortools/com_google_ortools.bzl delete mode 100644 dependency_support/com_google_protobuf/com_google_protobuf.bzl delete mode 100644 dependency_support/com_google_skywater_pdk/com_google_skywater_pdk.bzl delete mode 100644 dependency_support/com_icarus_iverilog/com_icarus_iverilog.bzl delete mode 100644 dependency_support/com_opencircuitdesign_magic/com_opencircuitdesign_magic.bzl delete mode 100644 dependency_support/com_opencircuitdesign_netgen/com_opencircuitdesign_netgen.bzl delete mode 100644 dependency_support/edu_berkeley_abc/edu_berkeley_abc.bzl delete mode 100644 dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl delete mode 100644 dependency_support/net_zlib/net_zlib.bzl delete mode 100644 dependency_support/org_fftw/org_fftw.bzl delete mode 100644 dependency_support/org_gnu_bison/org_gnu_bison.bzl delete mode 100644 dependency_support/org_gnu_glpk/org_gnu_glpk.bzl delete mode 100644 dependency_support/org_gnu_gperf/org_gnu_gperf.bzl delete mode 100644 dependency_support/org_gnu_readline/org_gnu_readline.bzl delete mode 100644 dependency_support/org_llvm_openmp/org_llvm_openmp.bzl delete mode 100644 dependency_support/org_nixos_patchelf/org_nixos_patchelf.bzl delete mode 100644 dependency_support/org_pcre_ftp/org_pcre_ftp.bzl delete mode 100644 dependency_support/org_sourceware_bzip2/org_sourceware_bzip2.bzl delete mode 100644 dependency_support/org_sourceware_libffi/org_sourceware_libffi.bzl delete mode 100644 dependency_support/org_swig/org_swig.bzl delete mode 100644 dependency_support/org_theopenroadproject/org_theopenroadproject.bzl delete mode 100644 dependency_support/org_theopenroadproject_asap7_pdk_r1p7/org_theopenroadproject_asap7_pdk_r1p7.bzl delete mode 100644 dependency_support/org_theopenroadproject_asap7sc6t_26/org_theopenroadproject_asap7sc6t_26.bzl delete mode 100644 dependency_support/org_theopenroadproject_asap7sc7p5t_27/org_theopenroadproject_asap7sc7p5t_27.bzl delete mode 100644 dependency_support/org_theopenroadproject_asap7sc7p5t_28/org_theopenroadproject_asap7sc7p5t_28.bzl delete mode 100644 dependency_support/rules_license/rules_license.bzl delete mode 100644 dependency_support/tk_tcl/tk_tcl.bzl delete mode 100644 dependency_support/verilator/verilator.bzl delete mode 100644 init.bzl diff --git a/dependency_support/at_clifford_icestorm/at_clifford_icestorm.bzl b/dependency_support/at_clifford_icestorm/at_clifford_icestorm.bzl deleted file mode 100644 index 2ba1425c..00000000 --- a/dependency_support/at_clifford_icestorm/at_clifford_icestorm.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Icestorm project that documents the bitstream format of Lattice iCE40.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def at_clifford_icestorm(): - maybe( - http_archive, - name = "at_clifford_icestorm", - urls = [ - "https://github.com/cliffordwolf/icestorm/archive/cd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb.zip", # 2020-06-02 - ], - strip_prefix = "icestorm-cd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb", - sha256 = "e8d12796091f5988097459450de20e4a59c873ca2fa580fef2f560c5543a1738", - build_file = Label("//dependency_support:at_clifford_icestorm/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/at_clifford_icestorm/workspace.bzl b/dependency_support/at_clifford_icestorm/workspace.bzl deleted file mode 100644 index a601ee50..00000000 --- a/dependency_support/at_clifford_icestorm/workspace.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 The XLS Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Icestorm project that documents the bitstream format of Lattice iCE40.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def repo(): - maybe( - http_archive, - name = "at_clifford_icestorm", - urls = [ - "https://github.com/cliffordwolf/icestorm/archive/cd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb.zip", # 2020-06-02 - ], - strip_prefix = "icestorm-cd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb", - sha256 = "e8d12796091f5988097459450de20e4a59c873ca2fa580fef2f560c5543a1738", - build_file = Label("//dependency_support:at_clifford_icestorm/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/at_clifford_yosys/at_clifford_yosys.bzl b/dependency_support/at_clifford_yosys/at_clifford_yosys.bzl deleted file mode 100644 index 2eb5cc76..00000000 --- a/dependency_support/at_clifford_yosys/at_clifford_yosys.bzl +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Yosys framework for Verilog synthesis.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def at_clifford_yosys(): - maybe( - http_archive, - name = "at_clifford_yosys", - urls = [ - "https://github.com/YosysHQ/yosys/archive/8f07a0d8404f63349d8d3111217b73c9eafbd667.zip", - ], - sha256 = "46a9a4d969770fa20a2fd12c8e83307a597126609645c9655c370c0c365da344", - strip_prefix = "yosys-8f07a0d8404f63349d8d3111217b73c9eafbd667", - build_file = Label("//dependency_support:at_clifford_yosys/bundled.BUILD.bazel"), - patches = [ - Label("//dependency_support:at_clifford_yosys/yosys.patch"), - Label("//dependency_support:at_clifford_yosys/autoname.patch"), - ], - ) diff --git a/dependency_support/bazel_skylib/bazel_skylib.bzl b/dependency_support/bazel_skylib/bazel_skylib.bzl deleted file mode 100644 index 93d12483..00000000 --- a/dependency_support/bazel_skylib/bazel_skylib.bzl +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the bazel-skylib utility library""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def bazel_skylib(): - maybe( - http_archive, - name = "bazel_skylib", - urls = [ - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", - ], - sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", - ) diff --git a/dependency_support/boost/boost.bzl b/dependency_support/boost/boost.bzl deleted file mode 100644 index a775cf8d..00000000 --- a/dependency_support/boost/boost.bzl +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2020 The XLS Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the Boost C++ libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def boost(): - maybe( - http_archive, - name = "com_github_nelhage_rules_boost", - # This equivalent to boost 1.82 - urls = ["https://github.com/nelhage/rules_boost/archive/1217caae292dc9f14e8109777ba43c988cf89c5b.zip"], - strip_prefix = "rules_boost-1217caae292dc9f14e8109777ba43c988cf89c5b", - integrity = "sha256-dBOuD+owIZaNbz07AXJJmwdPYcZsQU54rD/s+D8VL/I=", - patches = [ - # rules_boost does not include Boost Python, see - # https://github.com/nelhage/rules_boost/issues/67 - # This is because there doesn't exist a nice standard way in - # Bazel to depend on the Python headers of the current Python - # toolchain. The patch below selects the same Python headers - # that the rest of XLS uses. - Label("//dependency_support/boost:add_python.patch"), - Label("//dependency_support/boost:libbacktrace.patch"), - # See: https://github.com/nelhage/rules_boost/issues/555 - Label("//dependency_support/boost:downgrade_lzma.patch"), - ], - ) diff --git a/dependency_support/boost/downgrade_lzma.patch b/dependency_support/boost/downgrade_lzma.patch deleted file mode 100644 index 9e032327..00000000 --- a/dependency_support/boost/downgrade_lzma.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git boost/boost.bzl boost/boost.bzl -index 4381996..587a37d 100644 ---- boost/boost.bzl -+++ boost/boost.bzl -@@ -140,9 +140,9 @@ def boost_deps(): - http_archive, - name = "org_lzma_lzma", - build_file = "@com_github_nelhage_rules_boost//:lzma.BUILD", -- url = "https://github.com/tukaani-project/xz/releases/download/v5.4.3/xz-5.4.3.tar.gz", -- sha256 = "1c382e0bc2e4e0af58398a903dd62fff7e510171d2de47a1ebe06d1528e9b7e9", -- strip_prefix = "xz-5.4.3", -+ url = "https://src.fedoraproject.org/lookaside/extras/xz/xz-5.4.6.tar.gz/sha512/b08a61d8d478d3b4675cb1ddacdbbd98dc6941a55bcdd81a28679e54e9367d3a595fa123ac97874a17da571c1b712e2a3e901c2737099a9d268616a1ba3de497/xz-5.4.6.tar.gz", -+ sha256 = "aeba3e03bf8140ddedf62a0a367158340520f6b384f75ca6045ccc6c0d43fd5c", -+ strip_prefix = "xz-5.4.6", - ) - - maybe( diff --git a/dependency_support/com_github_fmtlib_fmt/com_github_fmtlib_fmt.bzl b/dependency_support/com_github_fmtlib_fmt/com_github_fmtlib_fmt.bzl deleted file mode 100644 index 41e8ceb5..00000000 --- a/dependency_support/com_github_fmtlib_fmt/com_github_fmtlib_fmt.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the fmtlib libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_fmtlib_fmt(): - maybe( - http_archive, - name = "com_github_fmtlib_fmt", - urls = [ - "https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.tar.gz", - ], - strip_prefix = "fmt-8.0.1", - sha256 = "b06ca3130158c625848f3fb7418f235155a4d389b2abc3a6245fb01cb0eb1e01", - build_file = Label("//dependency_support/com_github_fmtlib_fmt:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_github_gabime_spdlog/com_github_gabime_spdlog.bzl b/dependency_support/com_github_gabime_spdlog/com_github_gabime_spdlog.bzl deleted file mode 100644 index 3fd14891..00000000 --- a/dependency_support/com_github_gabime_spdlog/com_github_gabime_spdlog.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the spdlog libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_gabime_spdlog(): - maybe( - http_archive, - name = "com_github_gabime_spdlog", - urls = [ - "https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz", - ], - strip_prefix = "spdlog-1.11.0", - sha256 = "ca5cae8d6cac15dae0ec63b21d6ad3530070650f68076f3a4a862ca293a858bb", - build_file = Label("//dependency_support/com_github_gabime_spdlog:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_github_libbacktrace/com_github_libbacktrace.bzl b/dependency_support/com_github_libbacktrace/com_github_libbacktrace.bzl deleted file mode 100644 index b6c7ff7e..00000000 --- a/dependency_support/com_github_libbacktrace/com_github_libbacktrace.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the spdlog libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_libbacktrace(): - maybe( - http_archive, - name = "com_github_libbacktrace", - urls = [ - "https://github.com/ianlancetaylor/libbacktrace/archive/4d2dd0b172f2c9192f83ba93425f868f2a13c553.zip", - ], - strip_prefix = "libbacktrace-4d2dd0b172f2c9192f83ba93425f868f2a13c553", - sha256 = "90d224a18c0a0c0f1f22fe73b89ebebd4f1ee368e55d646718b7f3b294a52705", - build_file = Label("//dependency_support/com_github_libbacktrace:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_github_ninja_build_ninja/com_github_ninja_build_ninja.bzl b/dependency_support/com_github_ninja_build_ninja/com_github_ninja_build_ninja.bzl deleted file mode 100644 index 92ffdac0..00000000 --- a/dependency_support/com_github_ninja_build_ninja/com_github_ninja_build_ninja.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the spdlog libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_ninja_build_ninja(): - maybe( - http_archive, - name = "com_github_ninja_build_ninja", - urls = [ - "https://github.com/ninja-build/ninja/archive/55f54511d35716c43637dee2bcb5fbc7839f967b.zip", - ], - strip_prefix = "ninja-55f54511d35716c43637dee2bcb5fbc7839f967b", - sha256 = "99b70ac3bd7d5c303a5b770888342af22b701d2a5cbc26da0912f79ebd6bd458", - build_file = Label("//dependency_support/com_github_ninja_build_ninja:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_github_quantamhd_lemon/com_github_quantamhd_lemon.bzl b/dependency_support/com_github_quantamhd_lemon/com_github_quantamhd_lemon.bzl deleted file mode 100644 index 4a99e446..00000000 --- a/dependency_support/com_github_quantamhd_lemon/com_github_quantamhd_lemon.bzl +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Lemon package""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_quantamhd_lemon(): - maybe( - http_archive, - name = "com_github_quantamhd_lemon", - urls = [ - "https://github.com/QuantamHD/lemon/archive/refs/tags/1.3.1.tar.gz", - ], - strip_prefix = "lemon-1.3.1", - sha256 = "a7f28821431b76505966e9a34c94c180130f6162ed2fc59ade8a685b5d5dcfeb", - build_file = Label("//dependency_support/com_github_quantamhd_lemon:bundled.BUILD.bazel"), - patches = [ - Label("//dependency_support/com_github_quantamhd_lemon:lemon.patch"), - Label("//dependency_support/com_github_quantamhd_lemon:allocator-patch.patch"), - ], - patch_args = [ - "-p1", - ], - ) diff --git a/dependency_support/com_github_westes_flex/com_github_westes_flex.bzl b/dependency_support/com_github_westes_flex/com_github_westes_flex.bzl deleted file mode 100644 index 1db6d7bc..00000000 --- a/dependency_support/com_github_westes_flex/com_github_westes_flex.bzl +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Flex lexer generator, used by iverilog.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_westes_flex(): - maybe( - http_archive, - name = "rules_flex", - sha256 = "8929fedc40909d19a4b42548d0785f796c7677dcef8b5d1600b415e5a4a7749f", - urls = ["https://github.com/jmillikin/rules_flex/releases/download/v0.2.1/rules_flex-v0.2.1.tar.xz"], - ) diff --git a/dependency_support/com_github_yosyshq_nextpnr/com_github_yosyshq_nextpnr.bzl b/dependency_support/com_github_yosyshq_nextpnr/com_github_yosyshq_nextpnr.bzl deleted file mode 100644 index de1b9c0d..00000000 --- a/dependency_support/com_github_yosyshq_nextpnr/com_github_yosyshq_nextpnr.bzl +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads NextPNR, a portable FPGA place and route tool.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_yosyshq_nextpnr(): - maybe( - http_archive, - name = "com_github_yosyshq_nextpnr", - urls = [ - "https://github.com/YosysHQ/nextpnr/archive/f44498a5301f9f516488fb748c684926be514346.zip", # 2020-05-27 - ], - strip_prefix = "nextpnr-f44498a5301f9f516488fb748c684926be514346", - sha256 = "ee2a3a9f8a3632b28b33f0c7bd64d70e166c7f641184f2b84b606b7d8a67b878", - build_file = Label("//dependency_support/com_github_yosyshq_nextpnr:bundled.BUILD.bazel"), - patches = [ - Label("//dependency_support/com_github_yosyshq_nextpnr:dont_use_random_shuffle.patch"), - ], - ) diff --git a/dependency_support/com_github_yosyshq_prjtrellis/com_github_yosyshq_prjtrellis.bzl b/dependency_support/com_github_yosyshq_prjtrellis/com_github_yosyshq_prjtrellis.bzl deleted file mode 100644 index 262540c1..00000000 --- a/dependency_support/com_github_yosyshq_prjtrellis/com_github_yosyshq_prjtrellis.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads Project Trellis which documents the bitstream for Lattice ECP5 devices.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_yosyshq_prjtrellis(): - maybe( - http_archive, - name = "com_github_yosyshq_prjtrellis", - urls = [ - "https://github.com/SymbiFlow/prjtrellis/archive/315969591a12af11b02b4aa9c1dca9066e1be8e2.zip", # 2020-05-18 - ], - strip_prefix = "prjtrellis-315969591a12af11b02b4aa9c1dca9066e1be8e2", - sha256 = "7f6eaf88ab386e8976e3bf085d0189a9153c19ad9866dea3920c995a7f717bbd", - build_file = Label("//dependency_support/com_github_yosyshq_prjtrellis:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_github_yosyshq_prjtrellis_db/com_github_yosyshq_prjtrellis_db.bzl b/dependency_support/com_github_yosyshq_prjtrellis_db/com_github_yosyshq_prjtrellis_db.bzl deleted file mode 100644 index b2892ca4..00000000 --- a/dependency_support/com_github_yosyshq_prjtrellis_db/com_github_yosyshq_prjtrellis_db.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Project Trellis database with bitstream documentation for Lattice ECP5 devices.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_github_yosyshq_prjtrellis_db(): - maybe( - http_archive, - name = "com_github_yosyshq_prjtrellis_db", - urls = [ - "https://github.com/SymbiFlow/prjtrellis-db/archive/c137076fdd8bfca3d2bf9cdacda9983dbbec599a.zip", # 2020-06-03 - ], - strip_prefix = "prjtrellis-db-c137076fdd8bfca3d2bf9cdacda9983dbbec599a", - sha256 = "01d3d3906a7f690bd05f97b87bf196f602c659e0dadc77ebbccdd1acf1e362ca", - build_file = Label("//dependency_support/com_github_yosyshq_prjtrellis_db:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_google_googletest/com_google_googletest.bzl b/dependency_support/com_google_googletest/com_google_googletest.bzl deleted file mode 100644 index 8ae9f52c..00000000 --- a/dependency_support/com_google_googletest/com_google_googletest.bzl +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the GNU readline library.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_google_googletest(): - maybe( - http_archive, - name = "com_google_googletest", - urls = ["https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"], # Release 2nd Aug 2023 - strip_prefix = "googletest-1.14.0", - sha256 = "1f357c27ca988c3f7c6b4bf68a9395005ac6761f034046e9dde0896e3aba00e4", - ) diff --git a/dependency_support/com_google_ortools/com_google_ortools.bzl b/dependency_support/com_google_ortools/com_google_ortools.bzl deleted file mode 100644 index 49da157b..00000000 --- a/dependency_support/com_google_ortools/com_google_ortools.bzl +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the GNU readline library.""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_google_ortools(): - maybe( - http_archive, - name = "com_google_ortools", - strip_prefix = "or-tools-9.10", - urls = ["https://github.com/google/or-tools/archive/refs/tags/v9.10.tar.gz"], - sha256 = "e7c27a832f3595d4ae1d7e53edae595d0347db55c82c309c8f24227e675fd378", - ) - maybe( - new_git_repository, - name = "scip", - build_file = "@com_google_ortools//bazel:scip.BUILD.bazel", - patches = ["@com_google_ortools//bazel:scip-v900.patch"], - patch_args = ["-p1"], - tag = "v900", - remote = "https://github.com/scipopt/scip.git", - ) - maybe( - http_archive, - name = "bliss", - build_file = "@com_google_ortools//bazel:bliss.BUILD.bazel", - patches = ["@com_google_ortools//bazel:bliss-0.73.patch"], - sha256 = "f57bf32804140cad58b1240b804e0dbd68f7e6bf67eba8e0c0fa3a62fd7f0f84", - url = "https://github.com/google/or-tools/releases/download/v9.0/bliss-0.73.zip", - #url = "http://www.tcs.hut.fi/Software/bliss/bliss-0.73.zip", - ) - maybe( - new_git_repository, - name = "eigen", - tag = "3.4.0", - remote = "https://gitlab.com/libeigen/eigen.git", - build_file_content = """ -cc_library( - name = 'eigen3', - srcs = [], - includes = ['.'], - hdrs = glob(['Eigen/**']), - defines = ["EIGEN_MPL2_ONLY",], - visibility = ['//visibility:public'], -) -""", - ) diff --git a/dependency_support/com_google_protobuf/com_google_protobuf.bzl b/dependency_support/com_google_protobuf/com_google_protobuf.bzl deleted file mode 100644 index 1f318be9..00000000 --- a/dependency_support/com_google_protobuf/com_google_protobuf.bzl +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the GNU readline library.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_google_protobuf(): - maybe( - http_archive, - name = "com_google_protobuf", - urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v26.1.tar.gz"], - strip_prefix = "protobuf-26.1", - sha256 = "4fc5ff1b2c339fb86cd3a25f0b5311478ab081e65ad258c6789359cd84d421f8", - patch_args = ["-p1"], - patches = ["@com_google_ortools//patches:protobuf-v26.1.patch"], - ) diff --git a/dependency_support/com_google_skywater_pdk/com_google_skywater_pdk.bzl b/dependency_support/com_google_skywater_pdk/com_google_skywater_pdk.bzl deleted file mode 100644 index 6e23c673..00000000 --- a/dependency_support/com_google_skywater_pdk/com_google_skywater_pdk.bzl +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Skywater open source process design kit.""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") -load(":cell_libraries.bzl", "CELL_LIBRARIES") - -def _build_file(workspace_name, library_name): - return """ -load("@rules_hdl//dependency_support/com_google_skywater_pdk:declare_cell_library.bzl", "declare_cell_library") -declare_cell_library("{}", "{}") -""".format(workspace_name, library_name) - -def com_google_skywater_pdk(): - """Workspace rule for defining SKY130 build rules. - """ - maybe( - http_archive, - name = "com_google_skywater_pdk", - urls = [ - "https://github.com/google/skywater-pdk/archive/3d7617a1acb92ea883539bcf22a632d6361a5de4.tar.gz", # 2020-12-04 - ], - strip_prefix = "skywater-pdk-3d7617a1acb92ea883539bcf22a632d6361a5de4", - sha256 = "49e5b03c26131a03eb038697d396a6ebf14058d78196f5d95c2bbdb0bdc8f32e", - build_file = Label("//dependency_support/com_google_skywater_pdk:bundled.BUILD.bazel"), - ) - - for library_name in CELL_LIBRARIES: - library = CELL_LIBRARIES[library_name] - if library.get("library_type", None) == "ip_library": - continue - workspace_name = "com_google_skywater_pdk_" + library_name - maybe( - new_git_repository, - name = workspace_name, - commit = library["commit"], - remote = "https://github.com/google/skywater-pdk-libs-%s.git" % library_name, - shallow_since = library["shallow_since"], - build_file_content = _build_file(workspace_name, library_name), - patches = library.get("patches", []), - # Strip one directory level. Useful for patches generated by git. - patch_args = [ - "-p1", - ], - ) diff --git a/dependency_support/com_icarus_iverilog/com_icarus_iverilog.bzl b/dependency_support/com_icarus_iverilog/com_icarus_iverilog.bzl deleted file mode 100644 index cd875312..00000000 --- a/dependency_support/com_icarus_iverilog/com_icarus_iverilog.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the libedit library, used by iverilog (it poses as GNU readline).""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_icarus_iverilog(): - maybe( - http_archive, - name = "com_icarus_iverilog", - urls = [ - "https://github.com/steveicarus/iverilog/archive/v12_0.tar.gz", - ], - strip_prefix = "iverilog-12_0", - sha256 = "a68cb1ef7c017ef090ebedb2bc3e39ef90ecc70a3400afb4aa94303bc3beaa7d", - build_file = Label("//dependency_support:com_icarus_iverilog/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/com_opencircuitdesign_magic/com_opencircuitdesign_magic.bzl b/dependency_support/com_opencircuitdesign_magic/com_opencircuitdesign_magic.bzl deleted file mode 100644 index d8e66383..00000000 --- a/dependency_support/com_opencircuitdesign_magic/com_opencircuitdesign_magic.bzl +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Magic VLSI layout tool.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_opencircuitdesign_magic(): - maybe( - http_archive, - name = "com_opencircuitdesign_magic", - urls = [ - "https://github.com/RTimothyEdwards/magic/archive/0df5f6d0731024da457eeb42cb88725d93572920.zip", # 2020-08-24 - ], - strip_prefix = "magic-0df5f6d0731024da457eeb42cb88725d93572920", - sha256 = "1bc9966e5118c3d312e2dfebadb6f01ca343fbf1f0847e1434300972a4ca91f9", - build_file = Label("//dependency_support/com_opencircuitdesign_magic:bundled.BUILD.bazel"), - patches = [ - Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:magic_wrapper.patch"), - Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:use_bash.patch"), - ], - ) diff --git a/dependency_support/com_opencircuitdesign_netgen/com_opencircuitdesign_netgen.bzl b/dependency_support/com_opencircuitdesign_netgen/com_opencircuitdesign_netgen.bzl deleted file mode 100644 index 23572e68..00000000 --- a/dependency_support/com_opencircuitdesign_netgen/com_opencircuitdesign_netgen.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Netgen general-purpose netlist management system.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def com_opencircuitdesign_netgen(): - maybe( - http_archive, - name = "com_opencircuitdesign_netgen", - urls = [ - "https://github.com/RTimothyEdwards/netgen/archive/50b0e9cb6572cfa2f96d49556d13e4c445986e0f.zip", # 2020-08-28 - ], - strip_prefix = "netgen-50b0e9cb6572cfa2f96d49556d13e4c445986e0f", - sha256 = "2472de7d55f6266be3389e150571e48952a7613f6cb284a59eb46adfde770061", - build_file = Label("//dependency_support/com_opencircuitdesign_netgen:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/edu_berkeley_abc/edu_berkeley_abc.bzl b/dependency_support/edu_berkeley_abc/edu_berkeley_abc.bzl deleted file mode 100644 index 87f87aef..00000000 --- a/dependency_support/edu_berkeley_abc/edu_berkeley_abc.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 The XLS Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the ABC system for sequential synthesis and verification, used by yosys.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def edu_berkeley_abc(): - maybe( - http_archive, - name = "edu_berkeley_abc", - urls = [ - "https://github.com/berkeley-abc/abc/archive/0d579a430d57e5b864a62407aac2da0faba7c3b0.tar.gz", - ], - strip_prefix = "abc-0d579a430d57e5b864a62407aac2da0faba7c3b0", - sha256 = "9ea3d8b7a104a2394e8967c93b3faaa12c3444a8901c11786494119b8088a1d9", - build_file = Label("//dependency_support:edu_berkeley_abc/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl b/dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl deleted file mode 100644 index 0312ab16..00000000 --- a/dependency_support/net_invisible_island_ncurses/net_invisible_island_ncurses.bzl +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the ncurses library, used by iverilog.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def net_invisible_island_ncurses(): - maybe( - http_archive, - name = "net_invisible_island_ncurses", - urls = [ - "https://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz", - "https://fossies.org/linux/misc/ncurses-6.2.tar.gz", - "http://ftp.vim.org/ftp/gnu/ncurses/ncurses-6.2.tar.gz", - ], - strip_prefix = "ncurses-6.2", - sha256 = "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d", - build_file = Label("//dependency_support:net_invisible_island_ncurses/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/net_zlib/net_zlib.bzl b/dependency_support/net_zlib/net_zlib.bzl deleted file mode 100644 index 8590b786..00000000 --- a/dependency_support/net_zlib/net_zlib.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 The XLS Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the ABC system for sequential synthesis and verification, used by yosys.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def net_zlib(): - maybe( - http_archive, - name = "net_zlib", - sha256 = "f5cc4ab910db99b2bdbba39ebbdc225ffc2aa04b4057bc2817f1b94b6978cfc3", - strip_prefix = "zlib-1.2.11", - urls = [ - "https://github.com/madler/zlib/archive/v1.2.11.zip", - ], - build_file = "@rules_hdl//dependency_support/net_zlib:bundled.BUILD.bazel", - ) diff --git a/dependency_support/org_fftw/org_fftw.bzl b/dependency_support/org_fftw/org_fftw.bzl deleted file mode 100644 index 1ee068cd..00000000 --- a/dependency_support/org_fftw/org_fftw.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the FFTW fast fourier transform library.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_fftw(): - maybe( - http_archive, - name = "org_fftw", - urls = [ - "http://www.fftw.org/fftw-3.3.8.tar.gz", # 2020-08-29 - ], - strip_prefix = "fftw-3.3.8", - sha256 = "6113262f6e92c5bd474f2875fa1b01054c4ad5040f6b0da7c03c98821d9ae303", - build_file = Label("//dependency_support/org_fftw:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_gnu_bison/org_gnu_bison.bzl b/dependency_support/org_gnu_bison/org_gnu_bison.bzl deleted file mode 100644 index ef478454..00000000 --- a/dependency_support/org_gnu_bison/org_gnu_bison.bzl +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Bison parser generator.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_gnu_bison(): - maybe( - http_archive, - name = "rules_m4", - sha256 = "10ce41f150ccfbfddc9d2394ee680eb984dc8a3dfea613afd013cfb22ea7445c", - urls = ["https://github.com/jmillikin/rules_m4/releases/download/v0.2.3/rules_m4-v0.2.3.tar.xz"], - ) - - maybe( - http_archive, - name = "rules_bison", - sha256 = "2279183430e438b2dc77cacd7b1dbb63438971b2411406570f1ddd920b7c9145", - urls = ["https://github.com/jmillikin/rules_bison/releases/download/v0.2.2/rules_bison-v0.2.2.tar.xz"], - patch_args = ["-p1"], - patches = [ - # TODO(https://github.com/jmillikin/rules_bison/pull/14): Delete after this PR is merged - Label("//dependency_support/org_gnu_bison:bison_empty_glob.patch"), - ], - ) diff --git a/dependency_support/org_gnu_glpk/org_gnu_glpk.bzl b/dependency_support/org_gnu_glpk/org_gnu_glpk.bzl deleted file mode 100644 index 834e3563..00000000 --- a/dependency_support/org_gnu_glpk/org_gnu_glpk.bzl +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the FFTW fast fourier transform library.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_gnu_glpk(): - maybe( - http_archive, - name = "org_gnu_glpk", - urls = [ - "http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz", - "http://mirrors.kernel.org/gnu/glpk/glpk-4.47.tar.gz", - ], - strip_prefix = "glpk-4.47", - sha256 = "c35438e3ba74a8d85236810e6b84879272c87cfa7473b4075201e2967839f48d", - build_file = Label("//dependency_support/org_gnu_glpk:bundled.BUILD.bazel"), - patches = [ - Label("@rules_hdl//dependency_support/org_gnu_glpk:glpk.patch"), - ], - ) diff --git a/dependency_support/org_gnu_gperf/org_gnu_gperf.bzl b/dependency_support/org_gnu_gperf/org_gnu_gperf.bzl deleted file mode 100644 index 32d081c4..00000000 --- a/dependency_support/org_gnu_gperf/org_gnu_gperf.bzl +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the gperf perfect hash function generator, used by iverilog.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_gnu_gperf(): - maybe( - http_archive, - name = "org_gnu_gperf", - urls = [ - "http://ftp.acc.umu.se/mirror/gnu.org/gnu/gperf/gperf-3.1.tar.gz", - "http://ftp.gnu.org/gnu/gperf/gperf-3.1.tar.gz", - ], - strip_prefix = "gperf-3.1", - sha256 = "588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2", - build_file = Label("//dependency_support:org_gnu_gperf/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_gnu_readline/org_gnu_readline.bzl b/dependency_support/org_gnu_readline/org_gnu_readline.bzl deleted file mode 100644 index 8d7c0177..00000000 --- a/dependency_support/org_gnu_readline/org_gnu_readline.bzl +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2020-2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the GNU readline library.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_gnu_readline(): - maybe( - http_archive, - name = "org_gnu_readline", - urls = [ - "https://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz", - "http://ftp.vim.org/ftp/gnu/readline/readline-8.0.tar.gz", - "http://ftp.swin.edu.au/gnu/readline/readline-8.0.tar.gz", - ], - sha256 = "e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461", - strip_prefix = "readline-8.0", - build_file = Label("//dependency_support/org_gnu_readline:bundled.BUILD.bazel"), - patches = [ - Label("@rules_hdl//dependency_support/org_gnu_readline:missing_include.patch"), - ], - ) diff --git a/dependency_support/org_llvm_openmp/org_llvm_openmp.bzl b/dependency_support/org_llvm_openmp/org_llvm_openmp.bzl deleted file mode 100644 index 8553da2b..00000000 --- a/dependency_support/org_llvm_openmp/org_llvm_openmp.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the openmp runtime.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_llvm_openmp(): - maybe( - http_archive, - name = "org_llvm_openmp", - urls = [ - "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/openmp-10.0.1.src.tar.xz", - ], - strip_prefix = "openmp-10.0.1.src", - sha256 = "d19f728c8e04fb1e94566c8d76aef50ec926cd2f95ef3bf1e0a5de4909b28b44", - build_file = Label("//dependency_support/org_llvm_openmp:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_nixos_patchelf/org_nixos_patchelf.bzl b/dependency_support/org_nixos_patchelf/org_nixos_patchelf.bzl deleted file mode 100644 index 7a8ebc4a..00000000 --- a/dependency_support/org_nixos_patchelf/org_nixos_patchelf.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads patchelf, a utility for modifying ELF executables and libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_nixos_patchelf(): - maybe( - http_archive, - name = "org_nixos_patchelf", - urls = [ - "https://github.com/NixOS/patchelf/archive/f34751b88bd07d7f44f5cd3200fb4122bf916c7e.zip", # 2021-01-08 - ], - strip_prefix = "patchelf-f34751b88bd07d7f44f5cd3200fb4122bf916c7e", - sha256 = "5ed94d15c44c13c1fa6a78b2f5ca499e465fd9171e4a1daf194e8523c04a9339", - build_file = Label("//dependency_support/org_nixos_patchelf:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_pcre_ftp/org_pcre_ftp.bzl b/dependency_support/org_pcre_ftp/org_pcre_ftp.bzl deleted file mode 100644 index a80b0706..00000000 --- a/dependency_support/org_pcre_ftp/org_pcre_ftp.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the pcre library""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_pcre_ftp(): - maybe( - http_archive, - name = "org_pcre_ftp", - urls = [ - "https://ftp.exim.org/pub/pcre/pcre-8.44.tar.gz", - ], - strip_prefix = "pcre-8.44", - sha256 = "aecafd4af3bd0f3935721af77b889d9024b2e01d96b58471bd91a3063fb47728", - build_file = Label("//dependency_support:org_pcre_ftp/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_sourceware_bzip2/org_sourceware_bzip2.bzl b/dependency_support/org_sourceware_bzip2/org_sourceware_bzip2.bzl deleted file mode 100644 index 4e0d6a2e..00000000 --- a/dependency_support/org_sourceware_bzip2/org_sourceware_bzip2.bzl +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the bz2lib library, used by iverilog.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_sourceware_bzip2(): - maybe( - http_archive, - name = "org_sourceware_bzip2", - urls = [ - "https://mirrors.kernel.org/sourceware/bzip2/bzip2-1.0.8.tar.gz", - "https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz", - ], - strip_prefix = "bzip2-1.0.8", - sha256 = "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269", - build_file = Label("//dependency_support:org_sourceware_bzip2/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_sourceware_libffi/org_sourceware_libffi.bzl b/dependency_support/org_sourceware_libffi/org_sourceware_libffi.bzl deleted file mode 100644 index 2fe9c0e5..00000000 --- a/dependency_support/org_sourceware_libffi/org_sourceware_libffi.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the libffi library, used by Yosys.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_sourceware_libffi(): - maybe( - http_archive, - name = "org_sourceware_libffi", - urls = [ - "https://github.com/libffi/libffi/releases/download/v3.4.6/libffi-3.4.6.tar.gz", - ], - strip_prefix = "libffi-3.4.6", - sha256 = "b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e", - build_file = Label("//dependency_support:org_sourceware_libffi/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_swig/org_swig.bzl b/dependency_support/org_swig/org_swig.bzl deleted file mode 100644 index 84a6564a..00000000 --- a/dependency_support/org_swig/org_swig.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Swig library.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_swig(): - maybe( - http_archive, - name = "org_swig", - urls = [ - "https://downloads.sourceforge.net/swig/swig-4.0.0.tar.gz", - ], - strip_prefix = "swig-4.0.0", - sha256 = "e8a39cd6437e342cdcbd5af27a9bf11b62dc9efec9248065debcb8276fcbb925", - build_file = Label("//dependency_support/org_swig:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_theopenroadproject/org_theopenroadproject.bzl b/dependency_support/org_theopenroadproject/org_theopenroadproject.bzl deleted file mode 100644 index 6c0dc8f2..00000000 --- a/dependency_support/org_theopenroadproject/org_theopenroadproject.bzl +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the Boost C++ libraries.""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_theopenroadproject(): - maybe( - new_git_repository, - name = "org_theopenroadproject", - commit = "f6da0454e350e93c62264f7b7c95029e1ad2b9fd", - # TODO: Convert to http_archive whenever there is an archive - # which contains submodules. - # https://github.com/dear-github/dear-github/issues/214 - init_submodules = True, - remote = "https://github.com/The-OpenROAD-Project/OpenROAD.git", - build_file = Label("//dependency_support/org_theopenroadproject:bundled.BUILD.bazel"), - shallow_since = "1709242873 -0800", - patches = [ - Label("@rules_hdl//dependency_support/org_theopenroadproject:0001-logging-change-to-support-silence.patch"), - Label("@rules_hdl//dependency_support/org_theopenroadproject:0002-ortools-quotes.patch"), - ], - patch_args = ["-p1"], - ) diff --git a/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/org_theopenroadproject_asap7_pdk_r1p7.bzl b/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/org_theopenroadproject_asap7_pdk_r1p7.bzl deleted file mode 100644 index 442a8fec..00000000 --- a/dependency_support/org_theopenroadproject_asap7_pdk_r1p7/org_theopenroadproject_asap7_pdk_r1p7.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the Boost C++ libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_theopenroadproject_asap7_pdk_r1p7(): - maybe( - http_archive, - name = "org_theopenroadproject_asap7_pdk_r1p7", - urls = [ - "https://github.com/The-OpenROAD-Project/asap7_pdk_r1p7/archive/1ff7649bbf423207f6f70293dc1cf630cd477365.tar.gz", - ], - strip_prefix = "asap7_pdk_r1p7-1ff7649bbf423207f6f70293dc1cf630cd477365", - sha256 = "b5847f93e55debb49d03ec581e22eb301109ff90c9ad19d35ae1223c70250391", - build_file = Label("//dependency_support/org_theopenroadproject_asap7_pdk_r1p7:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_theopenroadproject_asap7sc6t_26/org_theopenroadproject_asap7sc6t_26.bzl b/dependency_support/org_theopenroadproject_asap7sc6t_26/org_theopenroadproject_asap7sc6t_26.bzl deleted file mode 100644 index d90bc6ac..00000000 --- a/dependency_support/org_theopenroadproject_asap7sc6t_26/org_theopenroadproject_asap7sc6t_26.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the Boost C++ libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_theopenroadproject_asap7sc6t_26(): - maybe( - http_archive, - name = "org_theopenroadproject_asap7sc6t_26", - urls = [ - "https://github.com/The-OpenROAD-Project/asap7sc6t_26/archive/f572bf760c8bdc853cbafd0742790aba0780089c.tar.gz", - ], - strip_prefix = "asap7sc6t_26-f572bf760c8bdc853cbafd0742790aba0780089c", - sha256 = "4bfe15775eaab3a5cc443d444ef82bf7b9c818ba2ed948ce3d9cc6a4cfa1c36c", - build_file = Label("//dependency_support/org_theopenroadproject_asap7sc6t_26:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_theopenroadproject_asap7sc7p5t_27/org_theopenroadproject_asap7sc7p5t_27.bzl b/dependency_support/org_theopenroadproject_asap7sc7p5t_27/org_theopenroadproject_asap7sc7p5t_27.bzl deleted file mode 100644 index 70c0ebbf..00000000 --- a/dependency_support/org_theopenroadproject_asap7sc7p5t_27/org_theopenroadproject_asap7sc7p5t_27.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the Boost C++ libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_theopenroadproject_asap7sc7p5t_27(): - maybe( - http_archive, - name = "org_theopenroadproject_asap7sc7p5t_27", - urls = [ - "https://github.com/The-OpenROAD-Project/asap7sc7p5t_27/archive/900f55ed8bef025f39edcc8b8be5e04a2c55c15a.tar.gz", - ], - strip_prefix = "asap7sc7p5t_27-900f55ed8bef025f39edcc8b8be5e04a2c55c15a", - sha256 = "db5531736a34f34e919488468e8ee09ae87495ff8a6188fad375d68c19e10e20", - build_file = Label("//dependency_support/org_theopenroadproject_asap7sc7p5t_27:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/org_theopenroadproject_asap7sc7p5t_28/org_theopenroadproject_asap7sc7p5t_28.bzl b/dependency_support/org_theopenroadproject_asap7sc7p5t_28/org_theopenroadproject_asap7sc7p5t_28.bzl deleted file mode 100644 index 390c3ac3..00000000 --- a/dependency_support/org_theopenroadproject_asap7sc7p5t_28/org_theopenroadproject_asap7sc7p5t_28.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Registers Bazel workspaces for the Boost C++ libraries.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def org_theopenroadproject_asap7sc7p5t_28(): - maybe( - http_archive, - name = "org_theopenroadproject_asap7sc7p5t_28", - urls = [ - "https://github.com/The-OpenROAD-Project/asap7sc7p5t_28/archive/d88477438935a5a388bd6294f682dc405c93c5d2.tar.gz", - ], - strip_prefix = "asap7sc7p5t_28-d88477438935a5a388bd6294f682dc405c93c5d2", - sha256 = "7f028a41425b8d736958cae994b3c1722d4bef2c0d28f6bf507b9ac8138ecc41", - build_file = Label("//dependency_support/org_theopenroadproject_asap7sc7p5t_28:bundled.BUILD.bazel"), - ) diff --git a/dependency_support/rules_license/rules_license.bzl b/dependency_support/rules_license/rules_license.bzl deleted file mode 100644 index 35523c27..00000000 --- a/dependency_support/rules_license/rules_license.bzl +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the bazel-skylib utility library""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def rules_license(): - maybe( - http_archive, - name = "rules_license", - urls = [ - "https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", - "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", - ], - sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381", - ) diff --git a/dependency_support/tk_tcl/tk_tcl.bzl b/dependency_support/tk_tcl/tk_tcl.bzl deleted file mode 100644 index 37c7a7e0..00000000 --- a/dependency_support/tk_tcl/tk_tcl.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the TCL scripting language.""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def tk_tcl(): - maybe( - http_archive, - name = "tk_tcl", - urls = [ - "https://prdownloads.sourceforge.net/tcl/tcl8.6.10-src.tar.gz", - ], - strip_prefix = "tcl8.6.10", - sha256 = "5196dbf6638e3df8d5c87b5815c8c2b758496eb6f0e41446596c9a4e638d87ed", - build_file = Label("//dependency_support:tk_tcl/bundled.BUILD.bazel"), - ) diff --git a/dependency_support/verilator/verilator.bzl b/dependency_support/verilator/verilator.bzl deleted file mode 100644 index c01c0f91..00000000 --- a/dependency_support/verilator/verilator.bzl +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Original implementation by Kevin Kiningham (@kkiningh) in kkiningh/rules_verilator. -# Ported to bazel_rules_hdl by Stephen Tridgell (@stridge-cruxml) -"""Download and build verilator""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -def verilator(): - maybe( - http_archive, - name = "verilator", - build_file = Label("//dependency_support/verilator:verilator.BUILD.bazel"), - urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.022.tar.gz"], - sha256 = "3c2f5338f4b6ce7e2f47a142401acdd18cbf4c5da06092618d6d036c0afef12d", - strip_prefix = "verilator-5.022", - ) diff --git a/init.bzl b/init.bzl deleted file mode 100644 index 04b3f2f7..00000000 --- a/init.bzl +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -""" initializes the bazel_rules_hdl workspace """ - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") -load("@rules_bison//bison:bison.bzl", "bison_register_toolchains") -load("@rules_flex//flex:flex.bzl", "flex_register_toolchains") -load("@rules_m4//m4:m4.bzl", "m4_register_toolchains") -load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") -load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains") -load("//dependency_support:requirements.bzl", install_pip_deps = "install_deps") -load("//dependency_support/boost:init_boost.bzl", "init_boost") - -def init(python_interpreter = None, python_interpreter_target = None): - """Initializes the bazel_rules_hdl workspace. - - If @bazel_rules_hdl is imported into another Bazel workspace, that workspace - must call `init` to allow @bazel_rules_hdl to set itself up. - - `python_interpreter` and `python_interpreter_target` are passed to - @bazel_rules_hdl's vendored requirements.bzl `install_deps`. If unspecified, - this project's default toolchain will be used. If the outside workspace has - a custom Python toolchain configured, these should be set, otherwise - @bazel_rules_hdl will not use the right Python toolchain when installing - pip dependencies. - - Args: - python_interpreter: Path to external Python interpreter to use with - `install_deps` for PyPI dependencies. This can be an absolute path or - relative to the host's `PATH` environment variable. - python_interpreter_target: Bazel target of a Python interpreter to build - to use with `install_deps` for PyPI dependencies. Using - `python_interpreter_target` makes it possible to have a hermetic - Python toolchain. `python_interpreter_target` takes precedence over - `python_interpreter` if both are set. - """ - - rules_proto_dependencies() - rules_proto_toolchains() - - install_deps_kwargs = {} - if python_interpreter: - install_deps_kwargs["python_interpreter"] = python_interpreter - if python_interpreter_target: - install_deps_kwargs["python_interpreter_target"] = python_interpreter_target - install_pip_deps(**install_deps_kwargs) - - init_boost() - - protobuf_deps() - - bazel_skylib_workspace() - - m4_register_toolchains(version = "1.4.18") - bison_register_toolchains(version = "3.3.2") - flex_register_toolchains(version = "2.6.4") From c0c39b4be201eeab9581e217106192d8f287872c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Fri, 21 Feb 2025 15:48:09 +0100 Subject: [PATCH 03/10] MODULE.bazel: Bump versions --- MODULE.bazel | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index ebc5fde5..97c00cd5 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -7,25 +7,25 @@ module(name = "rules_hdl") -bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") -bazel_dep(name = "bazel_skylib", version = "1.6.1") -bazel_dep(name = "eigen", version = "3.4.0.bcr.1") -bazel_dep(name = "fmt", version = "11.1.1", repo_name = "com_github_fmtlib_fmt") -bazel_dep(name = "googletest", version = "1.15.0", repo_name = "com_google_googletest") -bazel_dep(name = "protobuf", version = "27.3") +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "eigen", version = "3.4.0.bcr.2") +bazel_dep(name = "fmt", version = "11.1.3", repo_name = "com_github_fmtlib_fmt") +bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") +bazel_dep(name = "protobuf", version = "29.3") bazel_dep(name = "rules_bison", version = "0.3") bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost") bazel_dep(name = "rules_cc", version = "0.1.1") bazel_dep(name = "rules_flex", version = "0.3") -bazel_dep(name = "rules_java", version = "7.8.0") +bazel_dep(name = "rules_java", version = "8.6.3") bazel_dep(name = "rules_license", version = "1.0.0") bazel_dep(name = "rules_m4", version = "0.2.4") -bazel_dep(name = "rules_python", version = "0.34.0") -bazel_dep(name = "rules_pkg", version = "0.10.1") +bazel_dep(name = "rules_python", version = "1.0.0") +bazel_dep(name = "rules_pkg", version = "1.0.1") bazel_dep(name = "spdlog", version = "1.15.1", repo_name = "com_github_gabime_spdlog") bazel_dep(name = "toolchains_llvm", version = "1.0.0") -bazel_dep(name = "zlib", version = "1.3.1.bcr.3") +bazel_dep(name = "zlib", version = "1.3.1.bcr.4") bazel_dep(name = "or-tools", version = "9.12", repo_name = "com_google_ortools") archive_override( From d1d2eb8f3d2f7afdd217debb6701be6970701fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Fri, 21 Feb 2025 15:57:00 +0100 Subject: [PATCH 04/10] dependency_support: Remove deprecated thing --- dependency_support/boost/init_boost.bzl | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 dependency_support/boost/init_boost.bzl diff --git a/dependency_support/boost/init_boost.bzl b/dependency_support/boost/init_boost.bzl deleted file mode 100644 index 8fcbb2e0..00000000 --- a/dependency_support/boost/init_boost.bzl +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Loads the Boost C++ libraries.""" - -load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps") - -def init_boost(): - boost_deps() From a4a8a465ecb13e74e28127ecdce5ca1644e0139f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Fri, 21 Feb 2025 18:08:26 +0100 Subject: [PATCH 05/10] MODULE.bazel: Use boost from alternate registry --- .bazelrc | 3 ++ MODULE.bazel | 37 ++++++++++--------- .../bundled.BUILD.bazel | 28 +++++++------- .../org_theopenroadproject/build_helper.bzl | 20 +++++----- .../bundled.BUILD.bazel | 19 +++++----- 5 files changed, 56 insertions(+), 51 deletions(-) diff --git a/.bazelrc b/.bazelrc index b5c092cd..6ae625d2 100644 --- a/.bazelrc +++ b/.bazelrc @@ -13,6 +13,9 @@ # limitations under the License. common --enable_bzlmod +common --registry=https://raw.githubusercontent.com/bazelboost/registry/main +common --registry=https://bcr.bazel.build + build --cxxopt "-std=c++17" build --cxxopt "-ffp-contract=off" build --host_cxxopt "-std=c++17" diff --git a/MODULE.bazel b/MODULE.bazel index 97c00cd5..dac5a802 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,12 +10,30 @@ module(name = "rules_hdl") bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "boost.algorithm", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.asio", version = "1.83.0.bzl.4") +bazel_dep(name = "boost.bind", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.config", version = "1.83.0.bzl.6") +bazel_dep(name = "boost.fusion", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.geometry", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.graph", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.heap", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.icl", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.lambda", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.multi_array", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.optional", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.phoenix", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.polygon", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.property_tree", version = "1.83.0.bzl.1") +bazel_dep(name = "boost.serialization", version = "1.83.0.bzl.3") +bazel_dep(name = "boost.spirit", version = "1.83.0.bzl.2") +bazel_dep(name = "boost.stacktrace", version = "1.83.0.bzl.3") +bazel_dep(name = "boost.thread", version = "1.83.0.bzl.2") bazel_dep(name = "eigen", version = "3.4.0.bcr.2") bazel_dep(name = "fmt", version = "11.1.3", repo_name = "com_github_fmtlib_fmt") bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") bazel_dep(name = "protobuf", version = "29.3") bazel_dep(name = "rules_bison", version = "0.3") -bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost") bazel_dep(name = "rules_cc", version = "0.1.1") bazel_dep(name = "rules_flex", version = "0.3") bazel_dep(name = "rules_java", version = "8.6.3") @@ -28,20 +46,6 @@ bazel_dep(name = "toolchains_llvm", version = "1.0.0") bazel_dep(name = "zlib", version = "1.3.1.bcr.4") bazel_dep(name = "or-tools", version = "9.12", repo_name = "com_google_ortools") -archive_override( - module_name = "rules_boost", - integrity = "sha256-ymGvj87Jfv79f6G4kvOwLtRvBwCgTEqKuLrjb0hoMXs=", - patches = [ - "@rules_hdl//dependency_support/boost:boost.BUILD.patch", - "@rules_hdl//dependency_support/boost:libbacktrace.BUILD.patch", - "@rules_hdl//dependency_support/boost:MODULE.bazel.patch", - "@rules_hdl//dependency_support/boost:backtrace-supported.h.patch.patch", - "@rules_hdl//dependency_support/boost:config.h.patch.patch", - ], - strip_prefix = "rules_boost-5cdb3c83807d1036bebcc60acf87333e5b3cc856", - urls = ["https://github.com/nelhage/rules_boost/archive/5cdb3c83807d1036bebcc60acf87333e5b3cc856.zip"], -) - archive_override( module_name = "or-tools", integrity = "sha256-y7e/7plAn4tXBMQgyaa8wQVJY5UliMGWUdT1uwSA9TQ=", @@ -59,9 +63,6 @@ _org_gnu_gnulib( name = "org_gnu_gnulib", ) -non_module_boost_repositories = use_extension("@com_github_nelhage_rules_boost//:boost/repositories.bzl", "non_module_dependencies") -use_repo(non_module_boost_repositories, "boost") - # Configure and register the toolchain. llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") llvm.toolchain( diff --git a/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel b/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel index e1a912fc..15ff8e13 100644 --- a/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel +++ b/dependency_support/com_github_yosyshq_nextpnr/bundled.BUILD.bazel @@ -36,12 +36,12 @@ FAMILIES = [ DEPS = [ "@at_clifford_yosys//:json11", - "@boost//:filesystem", - "@boost//:iostreams", - "@boost//:program_options", - "@boost//:python", - "@boost//:system", - "@boost//:thread", + "@boost.filesystem", + "@boost.iostreams", + "@boost.program_options", + "@boost.python", + "@boost.system", + "@boost.thread", "@local_config_python//:python_headers", "@eigen//:eigen", ] @@ -103,8 +103,8 @@ cc_binary( srcs = ["bba/main.cc"], copts = COPTS, deps = [ - "@boost//:filesystem", - "@boost//:program_options", + "@boost.filesystem", + "@boost.program_options", ], ) @@ -223,9 +223,9 @@ cc_library( ], deps = [ ":common", - "@boost//:functional", - "@boost//:lexical_cast", - "@boost//:thread", + "@boost.functional", + "@boost.lexical_cast", + "@boost.thread", ], ) @@ -295,8 +295,8 @@ cc_library( ], deps = [ ":common", - "@boost//:functional", - "@boost//:lexical_cast", - "@boost//:thread", + "@boost.functional", + "@boost.lexical_cast", + "@boost.thread", ], ) diff --git a/dependency_support/org_theopenroadproject/build_helper.bzl b/dependency_support/org_theopenroadproject/build_helper.bzl index 2b58b216..f384f113 100644 --- a/dependency_support/org_theopenroadproject/build_helper.bzl +++ b/dependency_support/org_theopenroadproject/build_helper.bzl @@ -289,16 +289,16 @@ OPENROAD_LIBRARY_DEPS = [ "@com_google_absl//absl/flags:flag", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:span", - "@boost//:asio", - "@boost//:geometry", - "@boost//:graph", - "@boost//:heap", - "@boost//:icl", - "@boost//:multi_array", - "@boost//:polygon", - "@boost//:property_tree", - "@boost//:stacktrace", - "@boost//:thread", + "@boost.asio", + "@boost.geometry", + "@boost.graph", + "@boost.heap", + "@boost.icl", + "@boost.multi_array", + "@boost.polygon", + "@boost.property_tree", + "@boost.stacktrace", + "@boost.thread", "@eigen//:eigen", "@com_github_quantamhd_lemon//:lemon", "@org_llvm_openmp//:openmp", diff --git a/dependency_support/org_theopenroadproject/bundled.BUILD.bazel b/dependency_support/org_theopenroadproject/bundled.BUILD.bazel index 7c575eeb..cf522df0 100644 --- a/dependency_support/org_theopenroadproject/bundled.BUILD.bazel +++ b/dependency_support/org_theopenroadproject/bundled.BUILD.bazel @@ -1011,15 +1011,16 @@ cc_library( ":logger", ":opendb_def", ":opendb_lef", - "@boost//:algorithm", - "@boost//:bind", - "@boost//:config", - "@boost//:fusion", - "@boost//:lambda", - "@boost//:optional", - "@boost//:phoenix", - "@boost//:polygon", - "@boost//:spirit", + "@boost.algorithm", + "@boost.bind", + "@boost.config", + "@boost.fusion", + "@boost.lambda", + "@boost.optional", + "@boost.phoenix", + "@boost.polygon", + "@boost.serialization", + "@boost.spirit", "@com_github_gabime_spdlog//:spdlog", "@tk_tcl//:tcl", "@net_zlib//:zlib", From 54c586dedb0178a3bfe697bbf5c57a273e43c9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Fri, 21 Feb 2025 18:17:41 +0100 Subject: [PATCH 06/10] MODULE.bazel: Set dev dependency --- MODULE.bazel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index dac5a802..073dad82 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -42,7 +42,7 @@ bazel_dep(name = "rules_m4", version = "0.2.4") bazel_dep(name = "rules_python", version = "1.0.0") bazel_dep(name = "rules_pkg", version = "1.0.1") bazel_dep(name = "spdlog", version = "1.15.1", repo_name = "com_github_gabime_spdlog") -bazel_dep(name = "toolchains_llvm", version = "1.0.0") +bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True) bazel_dep(name = "zlib", version = "1.3.1.bcr.4") bazel_dep(name = "or-tools", version = "9.12", repo_name = "com_google_ortools") @@ -64,7 +64,7 @@ _org_gnu_gnulib( ) # Configure and register the toolchain. -llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") +llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True) llvm.toolchain( name = "llvm_toolchain", link_flags = { @@ -102,7 +102,7 @@ llvm.toolchain( ) use_repo(llvm, "llvm_toolchain") -register_toolchains("@llvm_toolchain//:all") +register_toolchains("@llvm_toolchain//:all", dev_dependency = True) python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( From 9fcb2e8e29e153318d885abea65caf8b6a4aff8f Mon Sep 17 00:00:00 2001 From: Stephen Tridgell Date: Thu, 24 Apr 2025 12:44:28 +1000 Subject: [PATCH 07/10] Fix boost versions. --- .gitignore | 1 + MODULE.bazel | 38 +++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 420c1274..d06376f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ bazel-*/ bazel-* user.bazelrc +MODULE.bazel.lock diff --git a/MODULE.bazel b/MODULE.bazel index 073dad82..06a5527e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,25 +10,25 @@ module(name = "rules_hdl") bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") bazel_dep(name = "bazel_skylib", version = "1.7.1") -bazel_dep(name = "boost.algorithm", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.asio", version = "1.83.0.bzl.4") -bazel_dep(name = "boost.bind", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.config", version = "1.83.0.bzl.6") -bazel_dep(name = "boost.fusion", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.geometry", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.graph", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.heap", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.icl", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.lambda", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.multi_array", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.optional", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.phoenix", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.polygon", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.property_tree", version = "1.83.0.bzl.1") -bazel_dep(name = "boost.serialization", version = "1.83.0.bzl.3") -bazel_dep(name = "boost.spirit", version = "1.83.0.bzl.2") -bazel_dep(name = "boost.stacktrace", version = "1.83.0.bzl.3") -bazel_dep(name = "boost.thread", version = "1.83.0.bzl.2") +bazel_dep(name = "boost.algorithm", version = "1.87.0") +bazel_dep(name = "boost.asio", version = "1.87.0") +bazel_dep(name = "boost.bind", version = "1.87.0") +bazel_dep(name = "boost.config", version = "1.87.0") +bazel_dep(name = "boost.fusion", version = "1.87.0") +bazel_dep(name = "boost.geometry", version = "1.87.0") +bazel_dep(name = "boost.graph", version = "1.87.0") +bazel_dep(name = "boost.heap", version = "1.87.0") +bazel_dep(name = "boost.icl", version = "1.87.0") +bazel_dep(name = "boost.lambda", version = "1.87.0") +bazel_dep(name = "boost.multi_array", version = "1.87.0") +bazel_dep(name = "boost.optional", version = "1.87.0") +bazel_dep(name = "boost.phoenix", version = "1.87.0") +bazel_dep(name = "boost.polygon", version = "1.87.0") +bazel_dep(name = "boost.property_tree", version = "1.87.0") +bazel_dep(name = "boost.serialization", version = "1.87.0") +bazel_dep(name = "boost.spirit", version = "1.87.0") +bazel_dep(name = "boost.stacktrace", version = "1.87.0") +bazel_dep(name = "boost.thread", version = "1.87.0") bazel_dep(name = "eigen", version = "3.4.0.bcr.2") bazel_dep(name = "fmt", version = "11.1.3", repo_name = "com_github_fmtlib_fmt") bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") From 47f3618c5608921c1639c18495740234ece2ac11 Mon Sep 17 00:00:00 2001 From: Stephen Tridgell Date: Thu, 24 Apr 2025 13:03:49 +1000 Subject: [PATCH 08/10] Fix boost deps again. --- MODULE.bazel | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 06a5527e..cd22d56f 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,25 +10,18 @@ module(name = "rules_hdl") bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") bazel_dep(name = "bazel_skylib", version = "1.7.1") -bazel_dep(name = "boost.algorithm", version = "1.87.0") -bazel_dep(name = "boost.asio", version = "1.87.0") -bazel_dep(name = "boost.bind", version = "1.87.0") -bazel_dep(name = "boost.config", version = "1.87.0") -bazel_dep(name = "boost.fusion", version = "1.87.0") -bazel_dep(name = "boost.geometry", version = "1.87.0") -bazel_dep(name = "boost.graph", version = "1.87.0") -bazel_dep(name = "boost.heap", version = "1.87.0") -bazel_dep(name = "boost.icl", version = "1.87.0") -bazel_dep(name = "boost.lambda", version = "1.87.0") -bazel_dep(name = "boost.multi_array", version = "1.87.0") -bazel_dep(name = "boost.optional", version = "1.87.0") -bazel_dep(name = "boost.phoenix", version = "1.87.0") -bazel_dep(name = "boost.polygon", version = "1.87.0") -bazel_dep(name = "boost.property_tree", version = "1.87.0") -bazel_dep(name = "boost.serialization", version = "1.87.0") -bazel_dep(name = "boost.spirit", version = "1.87.0") -bazel_dep(name = "boost.stacktrace", version = "1.87.0") -bazel_dep(name = "boost.thread", version = "1.87.0") +bazel_dep(name = "boost.asio", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.config", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.fusion", version = "1.83.0.bcr.1") +bazel_dep(name = "boost.geometry", version = "1.83.0.bcr.2") +bazel_dep(name = "boost.graph", version = "1.83.0.bcr.2") +bazel_dep(name = "boost.heap", version = "1.83.0") +bazel_dep(name = "boost.icl", version = "1.83.0") +bazel_dep(name = "boost.lambda", version = "1.83.0") +bazel_dep(name = "boost.multi_array", version = "1.83.0") +bazel_dep(name = "boost.phoenix", version = "1.83.0") +bazel_dep(name = "boost.polygon", version = "1.83.0.bcr.2") +bazel_dep(name = "boost.stacktrace", version = "1.83.0") bazel_dep(name = "eigen", version = "3.4.0.bcr.2") bazel_dep(name = "fmt", version = "11.1.3", repo_name = "com_github_fmtlib_fmt") bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") From fb73d440e9277009f26816446a9b237237fd34f4 Mon Sep 17 00:00:00 2001 From: Stephen Tridgell Date: Thu, 24 Apr 2025 13:40:11 +1000 Subject: [PATCH 09/10] Update verilator --- MODULE.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index cd22d56f..ce5f4f65 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -239,8 +239,8 @@ http_archive( name = "verilator", build_file = "@rules_hdl//dependency_support/verilator:verilator.BUILD.bazel", sha256 = "3c2f5338f4b6ce7e2f47a142401acdd18cbf4c5da06092618d6d036c0afef12d", - strip_prefix = "verilator-5.022", - urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.022.tar.gz"], + strip_prefix = "verilator-5.034", + urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.034.tar.gz"], ) http_archive( From 34c35fe03f06d7f7ded79a36e54d73415fc12595 Mon Sep 17 00:00:00 2001 From: Stephen Tridgell Date: Thu, 24 Apr 2025 13:41:56 +1000 Subject: [PATCH 10/10] Fix checksum --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index ce5f4f65..987c5aff 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -238,7 +238,7 @@ http_archive( http_archive( name = "verilator", build_file = "@rules_hdl//dependency_support/verilator:verilator.BUILD.bazel", - sha256 = "3c2f5338f4b6ce7e2f47a142401acdd18cbf4c5da06092618d6d036c0afef12d", + sha256 = "002da98e316ca6eee40407f5deb7d7c43a0788847d39c90d4d31ddbbc03020e8", strip_prefix = "verilator-5.034", urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.034.tar.gz"], )