Skip to content

Commit 0048de9

Browse files
committed
Removing workspace name from labels where possible
- In preparation to move to bzlmod
1 parent 1aca30e commit 0048de9

File tree

52 files changed

+121
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+121
-120
lines changed

.bazelrc

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
common --noenable_bzlmod
1415

1516
build --cxxopt "-std=c++17"
1617
build --cxxopt "-ffp-contract=off"

dependency_support/at_clifford_icestorm/at_clifford_icestorm.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def at_clifford_icestorm():
2626
],
2727
strip_prefix = "icestorm-cd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb",
2828
sha256 = "e8d12796091f5988097459450de20e4a59c873ca2fa580fef2f560c5543a1738",
29-
build_file = Label("@rules_hdl//dependency_support:at_clifford_icestorm/bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support:at_clifford_icestorm/bundled.BUILD.bazel"),
3030
)

dependency_support/at_clifford_icestorm/workspace.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def repo():
2626
],
2727
strip_prefix = "icestorm-cd2610e0fa1c6a90e8e4e4cfe06db1b474e752bb",
2828
sha256 = "e8d12796091f5988097459450de20e4a59c873ca2fa580fef2f560c5543a1738",
29-
build_file = Label("@rules_hdl//dependency_support:at_clifford_icestorm/bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support:at_clifford_icestorm/bundled.BUILD.bazel"),
3030
)

dependency_support/at_clifford_yosys/at_clifford_yosys.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def at_clifford_yosys():
2626
],
2727
sha256 = "46a9a4d969770fa20a2fd12c8e83307a597126609645c9655c370c0c365da344",
2828
strip_prefix = "yosys-8f07a0d8404f63349d8d3111217b73c9eafbd667",
29-
build_file = Label("@rules_hdl//dependency_support:at_clifford_yosys/bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support:at_clifford_yosys/bundled.BUILD.bazel"),
3030
patches = [
31-
Label("@rules_hdl//dependency_support:at_clifford_yosys/yosys.patch"),
32-
Label("@rules_hdl//dependency_support:at_clifford_yosys/autoname.patch"),
31+
Label("//dependency_support:at_clifford_yosys/yosys.patch"),
32+
Label("//dependency_support:at_clifford_yosys/autoname.patch"),
3333
],
3434
)

dependency_support/boost/boost.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def boost():
3232
# Bazel to depend on the Python headers of the current Python
3333
# toolchain. The patch below selects the same Python headers
3434
# that the rest of XLS uses.
35-
Label("@rules_hdl//dependency_support/boost:add_python.patch"),
36-
Label("@rules_hdl//dependency_support/boost:libbacktrace.patch"),
35+
Label("//dependency_support/boost:add_python.patch"),
36+
Label("//dependency_support/boost:libbacktrace.patch"),
3737
# See: https://github.com/nelhage/rules_boost/issues/555
38-
Label("@rules_hdl//dependency_support/boost:downgrade_lzma.patch"),
38+
Label("//dependency_support/boost:downgrade_lzma.patch"),
3939
],
4040
)

dependency_support/com_github_fmtlib_fmt/com_github_fmtlib_fmt.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_github_fmtlib_fmt():
2626
],
2727
strip_prefix = "fmt-8.0.1",
2828
sha256 = "b06ca3130158c625848f3fb7418f235155a4d389b2abc3a6245fb01cb0eb1e01",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_fmtlib_fmt:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_fmtlib_fmt:bundled.BUILD.bazel"),
3030
)

dependency_support/com_github_gabime_spdlog/com_github_gabime_spdlog.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_github_gabime_spdlog():
2626
],
2727
strip_prefix = "spdlog-1.11.0",
2828
sha256 = "ca5cae8d6cac15dae0ec63b21d6ad3530070650f68076f3a4a862ca293a858bb",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_gabime_spdlog:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_gabime_spdlog:bundled.BUILD.bazel"),
3030
)

dependency_support/com_github_libbacktrace/com_github_libbacktrace.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_github_libbacktrace():
2626
],
2727
strip_prefix = "libbacktrace-4d2dd0b172f2c9192f83ba93425f868f2a13c553",
2828
sha256 = "90d224a18c0a0c0f1f22fe73b89ebebd4f1ee368e55d646718b7f3b294a52705",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_libbacktrace:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_libbacktrace:bundled.BUILD.bazel"),
3030
)

dependency_support/com_github_ninja_build_ninja/com_github_ninja_build_ninja.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_github_ninja_build_ninja():
2626
],
2727
strip_prefix = "ninja-55f54511d35716c43637dee2bcb5fbc7839f967b",
2828
sha256 = "99b70ac3bd7d5c303a5b770888342af22b701d2a5cbc26da0912f79ebd6bd458",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_ninja_build_ninja:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_ninja_build_ninja:bundled.BUILD.bazel"),
3030
)

dependency_support/com_github_quantamhd_lemon/com_github_quantamhd_lemon.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def com_github_quantamhd_lemon():
2626
],
2727
strip_prefix = "lemon-1.3.1",
2828
sha256 = "a7f28821431b76505966e9a34c94c180130f6162ed2fc59ade8a685b5d5dcfeb",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_quantamhd_lemon:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_quantamhd_lemon:bundled.BUILD.bazel"),
3030
patches = [
31-
Label("@rules_hdl//dependency_support/com_github_quantamhd_lemon:lemon.patch"),
32-
Label("@rules_hdl//dependency_support/com_github_quantamhd_lemon:allocator-patch.patch"),
31+
Label("//dependency_support/com_github_quantamhd_lemon:lemon.patch"),
32+
Label("//dependency_support/com_github_quantamhd_lemon:allocator-patch.patch"),
3333
],
3434
patch_args = [
3535
"-p1",

dependency_support/com_github_yosyshq_nextpnr/com_github_yosyshq_nextpnr.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def com_github_yosyshq_nextpnr():
2626
],
2727
strip_prefix = "nextpnr-f44498a5301f9f516488fb748c684926be514346",
2828
sha256 = "ee2a3a9f8a3632b28b33f0c7bd64d70e166c7f641184f2b84b606b7d8a67b878",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_yosyshq_nextpnr:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_yosyshq_nextpnr:bundled.BUILD.bazel"),
3030
patches = [
31-
Label("@rules_hdl//dependency_support/com_github_yosyshq_nextpnr:dont_use_random_shuffle.patch"),
31+
Label("//dependency_support/com_github_yosyshq_nextpnr:dont_use_random_shuffle.patch"),
3232
],
3333
)

dependency_support/com_github_yosyshq_prjtrellis/com_github_yosyshq_prjtrellis.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_github_yosyshq_prjtrellis():
2626
],
2727
strip_prefix = "prjtrellis-315969591a12af11b02b4aa9c1dca9066e1be8e2",
2828
sha256 = "7f6eaf88ab386e8976e3bf085d0189a9153c19ad9866dea3920c995a7f717bbd",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_yosyshq_prjtrellis:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_yosyshq_prjtrellis:bundled.BUILD.bazel"),
3030
)

dependency_support/com_github_yosyshq_prjtrellis_db/com_github_yosyshq_prjtrellis_db.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_github_yosyshq_prjtrellis_db():
2626
],
2727
strip_prefix = "prjtrellis-db-c137076fdd8bfca3d2bf9cdacda9983dbbec599a",
2828
sha256 = "01d3d3906a7f690bd05f97b87bf196f602c659e0dadc77ebbccdd1acf1e362ca",
29-
build_file = Label("@rules_hdl//dependency_support/com_github_yosyshq_prjtrellis_db:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_github_yosyshq_prjtrellis_db:bundled.BUILD.bazel"),
3030
)

dependency_support/com_google_skywater_pdk/build_defs.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
These rules generate PDK providers for downstream tools.
1818
"""
1919

20-
load("@rules_hdl//pdk:build_defs.bzl", "CornerInfo", "StandardCellInfo")
21-
load("@rules_hdl//pdk:open_road_configuration.bzl", "OpenRoadPdkInfo")
20+
load("//pdk:build_defs.bzl", "CornerInfo", "StandardCellInfo")
21+
load("//pdk:open_road_configuration.bzl", "OpenRoadPdkInfo")
2222

2323
def _skywater_corner_impl(ctx):
2424
# Choose user supplied root, or default to build directory.

dependency_support/com_google_skywater_pdk/cell_libraries.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ CELL_LIBRARIES = {
5555
"tt_100C_1v80": ["basic"],
5656
},
5757
"default_corner": "ff_100C_1v95",
58-
"open_road_configuration": Label("@rules_hdl//dependency_support/com_google_skywater_pdk/sky130_fd_sc_hd:open_road_sky130_fd_sc_hd"),
58+
"open_road_configuration": Label("//dependency_support/com_google_skywater_pdk/sky130_fd_sc_hd:open_road_sky130_fd_sc_hd"),
5959
"patches": [
60-
Label("@rules_hdl//dependency_support/com_google_skywater_pdk/sky130_fd_sc_hd:pdk.patch"),
60+
Label("//dependency_support/com_google_skywater_pdk/sky130_fd_sc_hd:pdk.patch"),
6161
],
6262
"shallow_since": "1605028103 -0800",
6363
},

dependency_support/com_google_skywater_pdk/cells_info.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
"""Standard cell options for SkyWater 130nm PDK."""
1616

17-
load("@rules_hdl//dependency_support/com_google_skywater_pdk:cell_libraries.bzl", "CELL_LIBRARIES")
18-
load("@rules_hdl//pdk:build_defs.bzl", "StandardCellOptionsInfo", "check_for_each_cells_args", "temp_normalize", "voltage_normalize")
17+
load("//dependency_support/com_google_skywater_pdk:cell_libraries.bzl", "CELL_LIBRARIES")
18+
load("//pdk:build_defs.bzl", "StandardCellOptionsInfo", "check_for_each_cells_args", "temp_normalize", "voltage_normalize")
1919

2020
SKY130_OPTIONS = StandardCellOptionsInfo(
2121
libraries = [
@@ -104,7 +104,7 @@ def for_each_sky130_cells(libname, include_vts = None, include_corners = None, i
104104
105105
Use this to create bazel rules for every standard cell version like shown below;
106106
```
107-
load("@rules_hdl//dependency_support/com_google_skywater_pdk:build_info.bzl", "for_each_sky130_cells")
107+
load("//dependency_support/com_google_skywater_pdk:build_info.bzl", "for_each_sky130_cells")
108108
[
109109
extract_lef_and_liberty(
110110
name = cell_name + "-data",

dependency_support/com_google_skywater_pdk/com_google_skywater_pdk.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def com_google_skywater_pdk():
3636
],
3737
strip_prefix = "skywater-pdk-3d7617a1acb92ea883539bcf22a632d6361a5de4",
3838
sha256 = "49e5b03c26131a03eb038697d396a6ebf14058d78196f5d95c2bbdb0bdc8f32e",
39-
build_file = Label("@rules_hdl//dependency_support/com_google_skywater_pdk:bundled.BUILD.bazel"),
39+
build_file = Label("//dependency_support/com_google_skywater_pdk:bundled.BUILD.bazel"),
4040
)
4141

4242
for library_name in CELL_LIBRARIES:

dependency_support/com_icarus_iverilog/com_icarus_iverilog.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_icarus_iverilog():
2626
],
2727
strip_prefix = "iverilog-12_0",
2828
sha256 = "a68cb1ef7c017ef090ebedb2bc3e39ef90ecc70a3400afb4aa94303bc3beaa7d",
29-
build_file = Label("@rules_hdl//dependency_support:com_icarus_iverilog/bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support:com_icarus_iverilog/bundled.BUILD.bazel"),
3030
)

dependency_support/com_opencircuitdesign_magic/com_opencircuitdesign_magic.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def com_opencircuitdesign_magic():
2626
],
2727
strip_prefix = "magic-0df5f6d0731024da457eeb42cb88725d93572920",
2828
sha256 = "1bc9966e5118c3d312e2dfebadb6f01ca343fbf1f0847e1434300972a4ca91f9",
29-
build_file = Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_opencircuitdesign_magic:bundled.BUILD.bazel"),
3030
patches = [
3131
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:magic_wrapper.patch"),
3232
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:use_bash.patch"),

dependency_support/com_opencircuitdesign_netgen/com_opencircuitdesign_netgen.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def com_opencircuitdesign_netgen():
2626
],
2727
strip_prefix = "netgen-50b0e9cb6572cfa2f96d49556d13e4c445986e0f",
2828
sha256 = "2472de7d55f6266be3389e150571e48952a7613f6cb284a59eb46adfde770061",
29-
build_file = Label("@rules_hdl//dependency_support/com_opencircuitdesign_netgen:bundled.BUILD.bazel"),
29+
build_file = Label("//dependency_support/com_opencircuitdesign_netgen:bundled.BUILD.bazel"),
3030
)

0 commit comments

Comments
 (0)