Skip to content

Commit

Permalink
Add BUILD file template to alert_handler and rv_plic
Browse files Browse the repository at this point in the history
This is primarily for consistency and will make it easier to switch
to multitop.

Signed-off-by: Amaury Pouly <amaury.pouly@lowrisc.org>
  • Loading branch information
pamaury committed Dec 18, 2024
1 parent db75ea1 commit 2597216
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 4 deletions.
10 changes: 10 additions & 0 deletions hw/ip_templates/alert_handler/BUILD.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
)
10 changes: 10 additions & 0 deletions hw/ip_templates/rv_plic/BUILD.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
)
10 changes: 10 additions & 0 deletions hw/top_darjeeling/ip_autogen/alert_handler/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
)
10 changes: 10 additions & 0 deletions hw/top_darjeeling/ip_autogen/rv_plic/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
)
8 changes: 4 additions & 4 deletions hw/top_earlgrey/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ package(default_visibility = ["//visibility:public"])
autogen_hjson_c_header(
name = "rv_plic_c_regs",
srcs = [
"ip_autogen/rv_plic/data/rv_plic.hjson",
"//hw/top_earlgrey/ip_autogen/rv_plic:data/rv_plic.hjson",
],
)

autogen_hjson_rust_header(
name = "rv_plic_rust_regs",
srcs = [
"ip_autogen/rv_plic/data/rv_plic.hjson",
"//hw/top_earlgrey/ip_autogen/rv_plic:data/rv_plic.hjson",
],
)

autogen_hjson_c_header(
name = "alert_handler_c_regs",
srcs = [
"ip_autogen/alert_handler/data/alert_handler.hjson",
"//hw/top_earlgrey/ip_autogen/alert_handler:data/alert_handler.hjson",
],
)

autogen_hjson_rust_header(
name = "alert_handler_rust_regs",
srcs = [
"ip_autogen/alert_handler/data/alert_handler.hjson",
"//hw/top_earlgrey/ip_autogen/alert_handler:data/alert_handler.hjson",
],
)

Expand Down
2 changes: 2 additions & 0 deletions hw/top_earlgrey/ip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ filegroup(
"//hw/top_earlgrey/ip/xbar:all_files",
"//hw/top_earlgrey/ip/xbar_main:all_files",
"//hw/top_earlgrey/ip/xbar_peri:all_files",
"//hw/top_earlgrey/ip_autogen/alert_handler:all_files",
"//hw/top_earlgrey/ip_autogen/clkmgr:all_files",
"//hw/top_earlgrey/ip_autogen/flash_ctrl:all_files",
"//hw/top_earlgrey/ip_autogen/pinmux:all_files",
"//hw/top_earlgrey/ip_autogen/pwrmgr:all_files",
"//hw/top_earlgrey/ip_autogen/rstmgr:all_files",
"//hw/top_earlgrey/ip_autogen/rv_plic:all_files",
],
)
10 changes: 10 additions & 0 deletions hw/top_earlgrey/ip_autogen/alert_handler/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
)
10 changes: 10 additions & 0 deletions hw/top_earlgrey/ip_autogen/rv_plic/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
)

0 comments on commit 2597216

Please sign in to comment.