Skip to content

Commit b5d0c3f

Browse files
committed
build: fix Bazel build constraints and bump bazel-orfs
- Bumped bazel-orfs commit in MODULE.bazel to pull latest upstream patches. - Fixed an invalid label reference (bazel/install.sh -> //bazel:install.sh) in BUILD.bazel. - Added `allow_empty = True` to patches glob in bazel/BUILD to prevent failures when no patches exist. - Removed unsupported `extra` argument from orfs_design in flow/designs/design.bzl. - Added missing variable scopes (user_arguments, local_arguments, user_sources) to design BUILD files for gf180 and ihp-sg13g2 to pass bazel-orfs strict validation.
1 parent f4b9d7d commit b5d0c3f

7 files changed

Lines changed: 34 additions & 7 deletions

File tree

‎BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
22

33
sh_binary(
44
name = "install_for_bazel",
5-
srcs = ["bazel/install.sh"],
5+
srcs = ["//bazel:install.sh"],
66
)

‎MODULE.bazel‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ bazel_dep(name = "bazel-orfs", version = "0.0.1")
101101

102102
bazel_dep(name = "bazel-orfs-verilog", dev_dependency = True)
103103

104-
BAZEL_ORFS_COMMIT = "3342596c1f7017b9fda5b4a55a25a54ff2aaedf8"
104+
BAZEL_ORFS_COMMIT = "6ebadeb4be5c9ada103081c9a5e668c014126616"
105105

106106
BAZEL_ORFS_REMOTE = "https://github.com/The-OpenROAD-Project/bazel-orfs.git"
107107

@@ -131,6 +131,8 @@ git_override(
131131
remote = "https://github.com/povik/yosys-slang.git",
132132
)
133133

134+
135+
134136
# --- Extensions ---
135137

136138
register_toolchains(

‎bazel/BUILD‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
exports_files(glob(["*.patch"]))
1+
exports_files(
2+
["install.sh"] + glob(["*.patch"], allow_empty = True),
3+
visibility = ["//visibility:public"],
4+
)

‎flow/designs/design.bzl‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def design(config = "config.mk", user_arguments = [], user_sources = [], local_a
135135
user_sources = user_sources,
136136
local_arguments = local_arguments,
137137
blender = True,
138-
extra = _engine_variant_targets,
139138
)
140139

141140
def files(group, extra_srcs = None):
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
load("//flow/designs:design.bzl", "design")
22

3-
design(config = "config.mk")
3+
design(
4+
config = "config.mk",
5+
local_arguments = [
6+
"BC_ADDITIONAL_LIB_FILES",
7+
"TC_ADDITIONAL_LIB_FILES",
8+
"WC_ADDITIONAL_LIB_FILES",
9+
],
10+
user_arguments = ["DESIGN_TYPE"],
11+
)

‎flow/designs/gf180/aes/BUILD‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
load("//flow/designs:design.bzl", "design")
22

3-
design(config = "config.mk")
3+
design(
4+
config = "config.mk",
5+
user_arguments = ["DESIGN_TYPE"],
6+
)
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
load("//flow/designs:design.bzl", "design")
22

3-
design(config = "config.mk")
3+
design(
4+
config = "config.mk",
5+
user_arguments = [
6+
"IO_EAST_PINS",
7+
"IO_NORTH_PINS",
8+
"IO_SOUTH_PINS",
9+
"IO_WEST_PINS",
10+
],
11+
user_sources = [
12+
"ADDITIONAL_FAST_LIBS",
13+
"ADDITIONAL_SLOW_LIBS",
14+
],
15+
)

0 commit comments

Comments
 (0)