Skip to content

Commit

Permalink
[bazel] Support CW340 FPGA target
Browse files Browse the repository at this point in the history
Add support for the CW340 target to Bazel rules for cryptotest.

Fixes #24418.

Signed-off-by: Brian Orr <[email protected]>
(cherry picked from commit a785a76)
  • Loading branch information
Brian Orr authored and engdoreis committed Dec 10, 2024
1 parent ef02c51 commit 364dedf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sw/device/tests/crypto/cryptotest/cryptotest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ load(
# opentitan_test must have the following attributes to configure
# each execution environment:
# - cw310
# - cw340
# - silicon
CRYPTOTEST_EXEC_ENVS = {
"//hw/top_earlgrey:fpga_cw310_test_rom": None,
Expand Down Expand Up @@ -68,6 +69,15 @@ def cryptotest(name, test_vectors, test_args, test_harness, slow_test = False):
""" + test_args,
test_harness = test_harness,
),
fpga_cw340 = fpga_params(
timeout = "long",
tags = tags,
data = test_vectors,
test_cmd = """
--bootstrap={firmware}
""" + test_args,
test_harness = test_harness,
),
exec_env = CRYPTOTEST_EXEC_ENVS,
silicon = silicon_params(
timeout = "eternal",
Expand Down
1 change: 1 addition & 0 deletions sw/device/tests/crypto/cryptotest/firmware/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ opentitan_binary(
srcs = [":firmware.c"],
exec_env = [
"//hw/top_earlgrey:fpga_cw310",
"//hw/top_earlgrey:fpga_cw340",
"//hw/top_earlgrey:silicon_owner_sival_rom_ext",
],
deps = FIRMWARE_DEPS,
Expand Down

0 comments on commit 364dedf

Please sign in to comment.