-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker.BUILD.bazel
158 lines (139 loc) · 4.07 KB
/
docker.BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
load("@bazel-orfs//:openroad.bzl", "orfs_pdk")
exports_files(
glob([
"OpenROAD-flow-scripts/**/*.tcl",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.v",
]),
visibility = ["//visibility:public"],
)
filegroup(
name = "opengl",
srcs = glob(["usr/lib/x86_64-linux-gnu/dri/*.so"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "qt_plugins",
srcs = glob(["usr/lib/x86_64-linux-gnu/qt5/plugins/**"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "gio_modules",
srcs = glob(["usr/lib/x86_64-linux-gnu/gio/modules/*.so"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "ld.so",
srcs = ["lib64/ld-linux-x86-64.so.2"],
)
filegroup(
name = "openroad",
data = [
":ld.so",
":qt_plugins",
],
srcs = ["OpenROAD-flow-scripts/tools/install/OpenROAD/bin/openroad"],
visibility = ["//visibility:public"],
)
filegroup(
name = "sta",
data = [
":ld.so",
],
srcs = ["OpenROAD-flow-scripts/tools/install/OpenROAD/bin/sta"],
visibility = ["//visibility:public"],
)
filegroup(
name = "yosys",
data = [
":ld.so",
],
srcs = ["OpenROAD-flow-scripts/tools/install/yosys/bin/yosys"],
visibility = ["//visibility:public"],
)
filegroup(
name = "make",
data = [
":ld.so",
],
srcs = ["usr/bin/make"],
visibility = ["//visibility:public"],
)
filegroup(
name = "yosys-abc",
data = [
":ld.so",
],
srcs = ["OpenROAD-flow-scripts/tools/install/yosys/bin/yosys-abc"],
visibility = ["//visibility:public"],
)
filegroup(
name = "klayout",
data = [
":ld.so",
],
srcs = ["usr/bin/klayout"],
visibility = ["//visibility:public"],
)
filegroup(
name = "tcl8.6",
srcs = glob(["usr/share/tcltk/tcl8.6/**"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "ruby3.0.0",
srcs = glob(["usr/lib/ruby/3.0.0/**"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "ruby_dynamic3.0.0",
srcs = glob(["usr/lib/x86_64-linux-gnu/ruby/3.0.0/**"]),
visibility = ["//visibility:public"],
)
MAKEFILE_SHARED = [
"OpenROAD-flow-scripts/flow/util/utils.mk",
"OpenROAD-flow-scripts/flow/scripts/*.py",
"OpenROAD-flow-scripts/flow/scripts/*.sh",
"OpenROAD-flow-scripts/flow/scripts/*.yaml",
]
# Narrowly define yosys dependencies to avoid hours of resynthesis
# upon upgrading ORFS since yosys hardly ever changes
filegroup(
name = "makefile_yosys",
srcs = ["OpenROAD-flow-scripts/flow/Makefile"],
data = glob(MAKEFILE_SHARED + [
"OpenROAD-flow-scripts/flow/scripts/*.script",
"OpenROAD-flow-scripts/flow/scripts/util.tcl",
"OpenROAD-flow-scripts/flow/scripts/synth*.tcl",
"OpenROAD-flow-scripts/flow/util/preprocessLib.py",
"OpenROAD-flow-scripts/flow/util/mergeLib.pl",
]),
visibility = ["//visibility:public"],
)
filegroup(
name = "makefile",
srcs = ["OpenROAD-flow-scripts/flow/Makefile"],
data = glob(MAKEFILE_SHARED + [
"OpenROAD-flow-scripts/flow/util/*.pl",
"OpenROAD-flow-scripts/flow/util/*.py",
"OpenROAD-flow-scripts/flow/util/*.sh",
"OpenROAD-flow-scripts/flow/scripts/*.tcl",
]),
visibility = ["//visibility:public"],
)
orfs_pdk(
name = "asap7",
srcs = glob([
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.gds",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.lib.gz",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.lef",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.lib",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.lyt",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.mk",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.rules",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.sdc",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.tcl",
"OpenROAD-flow-scripts/flow/platforms/asap7/**/*.v",
"OpenROAD-flow-scripts/flow/platforms/common/**/*.v",
]),
visibility = ["//visibility:public"],
)