-
Notifications
You must be signed in to change notification settings - Fork 809
/
Copy pathBUILD
132 lines (117 loc) · 2.81 KB
/
BUILD
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
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("@rules_python//python:defs.bzl", "py_binary")
load("@ot_python_deps//:requirements.bzl", "all_requirements", "requirement")
package(default_visibility = ["//visibility:public"])
exports_files(glob(["**"]))
py_binary(
name = "otbn_build",
srcs = ["otbn_build.py"],
imports = ["../hw/ip/otbn/util/"],
deps = [
requirement("pyelftools"),
"//hw/ip/otbn/util:otbn_as",
"//hw/ip/otbn/util:otbn_ld",
],
)
py_binary(
name = "rom_chip_info",
srcs = ["rom_chip_info.py"],
)
py_test(
name = "rom_chip_info_test",
srcs = [
"rom_chip_info.py",
"rom_chip_info_test.py",
],
)
py_binary(
name = "regtool",
srcs = ["regtool.py"],
deps = [
"//util/reggen:countermeasure",
"//util/reggen:gen_cheader",
"//util/reggen:gen_dv",
"//util/reggen:gen_fpv",
"//util/reggen:gen_html",
"//util/reggen:gen_json",
"//util/reggen:gen_rtl",
"//util/reggen:gen_rust",
"//util/reggen:gen_sec_cm_testplan",
"//util/reggen:gen_selfdoc",
"//util/reggen:gen_tock",
"//util/reggen:ip_block",
"//util/reggen:version",
requirement("tabulate"),
],
)
py_binary(
name = "autogen_dif",
srcs = ["autogen_dif.py"],
data = [
"//util/make_new_dif:tpl_files",
],
deps = [
":repo_top",
"//util/make_new_dif:ip",
requirement("hjson"),
requirement("mako"),
],
)
py_binary(
name = "dttool",
srcs = ["dttool.py"],
data = [
"//util/dtgen:tpl_files",
],
deps = [
"//util/dtgen:helper",
"//util/ipgen",
"//util/reggen:ip_block",
"//util/reggen:version",
"//util/topgen",
requirement("mako"),
# FIXME this is actually used by reggen that has a deps on it but it doesn't work...
requirement("pyyaml"),
],
)
py_test(
name = "generate_compilation_db_test",
srcs = [
"generate_compilation_db.py",
"generate_compilation_db_test.py",
],
)
py_binary(
name = "run_manual_tests",
srcs = [
"run_manual_tests.py",
],
deps = [
requirement("typer"),
requirement("hjson"),
requirement("rich"),
requirement("pluralizer"),
],
)
py_binary(
name = "fusesoc_build",
srcs = ["fusesoc_build.py"],
deps = all_requirements,
)
py_library(
name = "version_file",
srcs = ["version_file.py"],
)
py_library(
name = "repo_top",
srcs = ["repo_top.py"],
)
cc_library(
name = "bfv_decoder",
srcs = ["bfv_decoder.c"],
deps = [
"//sw/device/silicon_creator/lib:error",
],
)