Skip to content

Commit

Permalink
[isr_testutils] Rewrite dependencies
Browse files Browse the repository at this point in the history
Some dependencies depend on the top. For now manually select the right
ones.

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Nov 19, 2024
1 parent bd4e21b commit f9da3d0
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions sw/device/lib/testing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,12 @@ cc_library(
"//sw/device/lib/dif:alert_handler",
"//sw/device/lib/dif:aon_timer",
"//sw/device/lib/dif:csrng",
"//sw/device/lib/dif:dma",
"//sw/device/lib/dif:edn",
"//sw/device/lib/dif:entropy_src",
"//sw/device/lib/dif:flash_ctrl",
"//sw/device/lib/dif:gpio",
"//sw/device/lib/dif:hmac",
"//sw/device/lib/dif:i2c",
"//sw/device/lib/dif:keymgr",
"//sw/device/lib/dif:keymgr_dpe",
"//sw/device/lib/dif:kmac",
"//sw/device/lib/dif:mbx",
"//sw/device/lib/dif:otbn",
"//sw/device/lib/dif:otp_ctrl",
"//sw/device/lib/dif:pattgen",
Expand All @@ -39,9 +34,21 @@ cc_library(
"//sw/device/lib/dif:spi_host",
"//sw/device/lib/dif:sysrst_ctrl",
"//sw/device/lib/dif:uart",
"//sw/device/lib/dif:usbdev",
"//sw/device/lib/testing/test_framework:check",
],
] + select(
{
# FIXME improve this when we have proper platforms
"//hw/top:top_earlgrey": [
"//sw/device/lib/dif:flash_ctrl",
"//sw/device/lib/dif:keymgr",
"//sw/device/lib/dif:usbdev",
],
# TODO: add "//sw/device/lib/dif:mbx",
# "//sw/device/lib/dif:keymgr_dpe",
# "//sw/device/lib/dif:dma",
},
no_match_error = "no top selected",
),
)

cc_library(
Expand Down

0 comments on commit f9da3d0

Please sign in to comment.