Skip to content

Commit

Permalink
[test_rom] Mark top-specific libraries as compatible with their top
Browse files Browse the repository at this point in the history
Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Dec 4, 2024
1 parent 96a061f commit 8f6980d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sw/device/lib/testing/test_rom/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//hw/top:defs.bzl", "opentitan_if_ip", "opentitan_select_top")
load("//hw/top:defs.bzl", "opentitan_if_ip", "opentitan_require_top", "opentitan_select_top")
load(
"//rules/opentitan:defs.bzl",
"OPENTITAN_CPU",
Expand Down Expand Up @@ -112,6 +112,7 @@ cc_library(

cc_library(
name = "earl_grey_test_rom_lib",
target_compatible_with = opentitan_require_top("earlgrey"),
deps = [
"//sw/device/lib/dif:rstmgr",
"//sw/device/silicon_creator/lib/drivers:flash_ctrl",
Expand All @@ -125,6 +126,7 @@ cc_library(
srcs = [
"darjeeling_fake_driver_funcs.c",
],
target_compatible_with = opentitan_require_top("darjeeling"),
deps = [
"//sw/device/lib/dif:rstmgr",
"//sw/device/silicon_creator/lib/drivers:retention_sram",
Expand Down

0 comments on commit 8f6980d

Please sign in to comment.