Skip to content

Commit

Permalink
[ipgen,rstmgr] Add ip_templates to //hw:all
Browse files Browse the repository at this point in the history
The //hw:all target is used in the azure pilelines to exclude hw files
from the software build. This means the //hw/ip_templates files must also
belong to //hw:all since template files are never meant to be built.

Signed-off-by: Guillermo Maturana <[email protected]>
  • Loading branch information
matutem committed Jan 12, 2024
1 parent d262abc commit 56ed9e5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions hw/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ filegroup(
) + [
"//:tool_requirements.py",
"//hw/ip:all_files",
"//hw/ip_templates:all_files",
"//hw/top_earlgrey:all_files",
"//util:check_tool_requirements.py",
],
Expand Down
13 changes: 13 additions & 0 deletions hw/ip_templates/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright lowRISC contributors.
# 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(["**"]) + [
"//hw/ip_templates/pwrmgr:all_files",
"//hw/ip_templates/rstmgr:all_files",
],
)
4 changes: 3 additions & 1 deletion hw/ip_templates/pwrmgr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
srcs = glob(["**"]) + [
"//hw/ip_templates/pwrmgr/data:all_files",
],
)
4 changes: 3 additions & 1 deletion hw/ip_templates/rstmgr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
srcs = glob(["**"]) + [
"//hw/ip_templates/rstmgr/data:all_files",
],
)
4 changes: 3 additions & 1 deletion hw/top_earlgrey/ip_autogen/pwrmgr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
srcs = glob(["**"]) + [
"//hw/ip_templates/pwrmgr/data:all_files",
],
)
4 changes: 3 additions & 1 deletion hw/top_earlgrey/ip_autogen/rstmgr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])

filegroup(
name = "all_files",
srcs = glob(["**"]),
srcs = glob(["**"]) + [
"//hw/ip_templates/rstmgr/data:all_files",
],
)

0 comments on commit 56ed9e5

Please sign in to comment.