Skip to content

Commit 9c3b87e

Browse files
committed
[bazel] Process needs_jtag for QEMU execution environment
Signed-off-by: James Wainwright <[email protected]>
1 parent e2c9a44 commit 9c3b87e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rules/opentitan/qemu.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def qemu_params(
3232
rom_ext = None,
3333
otp = None,
3434
bitstream = None,
35+
needs_jtag = False,
3536
test_cmd = "",
3637
data = [],
3738
defines = [],
@@ -63,10 +64,13 @@ def qemu_params(
6364
rom_ext = rom_ext,
6465
otp = otp,
6566
bitstream = bitstream,
66-
test_cmd = test_cmd,
67+
test_cmd = ("""
68+
{jtag_test_cmd}
69+
""" if needs_jtag else "") + test_cmd,
6770
data = data,
6871
param = kwargs | extra_params,
6972
defines = defines,
73+
needs_jtag = needs_jtag,
7074
)
7175

7276
def gen_cfg(ctx, **kwargs):

0 commit comments

Comments
 (0)