Skip to content

Commit b2683ab

Browse files
committed
bazel-orfs: bump
and add python and matplotlib to be used in future commit. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 6b38aee commit b2683ab

File tree

5 files changed

+1904
-5
lines changed

5 files changed

+1904
-5
lines changed

flow/BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
12
load("@bazel-orfs//:openroad.bzl", "orfs_flow")
23

34
filegroup(
@@ -261,3 +262,15 @@ orfs_flow(
261262
},
262263
)
263264

265+
266+
filegroup(
267+
name = "ethmac_lvt_src",
268+
srcs = glob(include=["designs/src/ethmac_lvt/*.v"]),
269+
visibility = [":__subpackages__"],
270+
)
271+
272+
compile_pip_requirements(
273+
name = "requirements",
274+
src = "requirements.in",
275+
requirements_txt = "requirements_lock.txt",
276+
)

flow/MODULE.bazel

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""ORFS bazel setup."""
2+
13
module(
24
name = "orfs",
35
version = "0.0.1",
@@ -7,7 +9,7 @@ module(
79
bazel_dep(name = "bazel-orfs")
810
git_override(
911
module_name = "bazel-orfs",
10-
commit = "b12fc7a172d4211315ec36214f872595e084ab25",
12+
commit = "d30e1987275cb54163a4dfde421392c31d0a7148",
1113
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1214
)
1315

@@ -22,3 +24,40 @@ git_override(
2224
# module_name = "bazel-orfs", path = "../bazel-orfs"
2325
#)
2426

27+
28+
bazel_dep(name = "rules_python", version = "0.31.0")
29+
30+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
31+
python.toolchain(
32+
ignore_root_user_error = True,
33+
python_version = "3.12",
34+
)
35+
36+
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
37+
pip.parse(
38+
hub_name = "orfs-pip",
39+
python_version = "3.12",
40+
requirements_lock = "//:requirements_lock.txt",
41+
)
42+
use_repo(pip, "orfs-pip")
43+
44+
45+
orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
46+
orfs.default(
47+
# To build an ORFS image from a PR:
48+
# ./build_openroad.sh --latest
49+
#
50+
# Check out the PRs and modify the local repository as needed
51+
# ./build_openroad.sh --no_init
52+
#
53+
# docker tag docker.io/openroad/flow-ubuntu22.04-builder:c46d41 gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41
54+
# docker push gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41
55+
# image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41",
56+
#
57+
# Official image https://hub.docker.com/r/openroad/orfs/tags
58+
image = "docker.io/openroad/orfs:v3.0-2130-g6b38aeeb",
59+
# image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:3d2c3d-2",
60+
sha256 = "f5b573d244862bc59f858e2a3586c48aef70989e98f6541099bd15a720e28e7e",
61+
)
62+
use_repo(orfs, "com_github_nixos_patchelf_download")
63+
use_repo(orfs, "docker_orfs")

0 commit comments

Comments
 (0)