-
Notifications
You must be signed in to change notification settings - Fork 809
/
Copy pathBUILD
38 lines (31 loc) · 830 Bytes
/
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
# 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/opentitan:splice.bzl", universal_splice = "bitstream_splice")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "none",
srcs = ["skip.bit"],
)
label_flag(
name = "rom",
build_setting_default = ":none",
)
label_flag(
name = "otp",
build_setting_default = ":none",
)
label_flag(
name = "env",
build_setting_default = ":none",
)
universal_splice(
name = "splice",
testonly = True,
# When the src bitstream, rom_mmi and otp_mmi fields are empty,
# the rule will use values from the exec_env.
exec_env = ":env",
otp = ":otp",
rom = ":rom",
tags = ["manual"],
)