Skip to content

Commit

Permalink
WIP [hw,top] Add targets for top-specific DT libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Nov 13, 2024
1 parent d9b76f0 commit c54449c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions hw/top/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ load(
"opentitan_ip_c_header",
"opentitan_ip_dt_header",
"opentitan_ip_rust_header",
"opentitan_top_devicetables",
"opentitan_top_dt_api",
)

package(default_visibility = ["//visibility:public"])
Expand All @@ -16,6 +18,11 @@ alias(
actual = "//hw/top_earlgrey",
)

alias(
name = "top_lib",
actual = "//hw/top_earlgrey/sw/autogen:top_earlgrey",
)

# List of IPs for which to generate headers.
IPS = [
"alert_handler",
Expand Down Expand Up @@ -73,11 +80,18 @@ IPS = [
for ip in IPS
]

opentitan_top_dt_api(
name = "dt_api",
top = ":top",
deps = [":top_lib"],
)

[
opentitan_ip_dt_header(
name = "dt_{}".format(ip),
ip = ip,
top = ":top",
deps = [":dt_api"],
)
for ip in IPS
]
Expand All @@ -87,3 +101,9 @@ cc_library(
srcs = [],
deps = ["dt_{}".format(ip) for ip in IPS],
)

opentitan_top_devicetables(
name = "devicetables",
top = ":top",
deps = [":dt_headers"],
)

0 comments on commit c54449c

Please sign in to comment.