From 56ed9e5f9ac023bc354689a0179f3e32c96492c8 Mon Sep 17 00:00:00 2001 From: Guillermo Maturana Date: Fri, 12 Jan 2024 18:43:27 +0000 Subject: [PATCH] [ipgen,rstmgr] Add ip_templates to //hw:all 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 --- hw/BUILD | 1 + hw/ip_templates/BUILD | 13 +++++++++++++ hw/ip_templates/pwrmgr/BUILD | 4 +++- hw/ip_templates/rstmgr/BUILD | 4 +++- hw/top_earlgrey/ip_autogen/pwrmgr/BUILD | 4 +++- hw/top_earlgrey/ip_autogen/rstmgr/BUILD | 4 +++- 6 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 hw/ip_templates/BUILD diff --git a/hw/BUILD b/hw/BUILD index 4c415d153647e4..533c053581c109 100644 --- a/hw/BUILD +++ b/hw/BUILD @@ -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", ], diff --git a/hw/ip_templates/BUILD b/hw/ip_templates/BUILD new file mode 100644 index 00000000000000..46308144f3228a --- /dev/null +++ b/hw/ip_templates/BUILD @@ -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", + ], +) diff --git a/hw/ip_templates/pwrmgr/BUILD b/hw/ip_templates/pwrmgr/BUILD index 36beb77a655e78..d22aa8c1f9e8ab 100644 --- a/hw/ip_templates/pwrmgr/BUILD +++ b/hw/ip_templates/pwrmgr/BUILD @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"]) filegroup( name = "all_files", - srcs = glob(["**"]), + srcs = glob(["**"]) + [ + "//hw/ip_templates/pwrmgr/data:all_files", + ], ) diff --git a/hw/ip_templates/rstmgr/BUILD b/hw/ip_templates/rstmgr/BUILD index 36beb77a655e78..06f7d7bcb6ad5b 100644 --- a/hw/ip_templates/rstmgr/BUILD +++ b/hw/ip_templates/rstmgr/BUILD @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"]) filegroup( name = "all_files", - srcs = glob(["**"]), + srcs = glob(["**"]) + [ + "//hw/ip_templates/rstmgr/data:all_files", + ], ) diff --git a/hw/top_earlgrey/ip_autogen/pwrmgr/BUILD b/hw/top_earlgrey/ip_autogen/pwrmgr/BUILD index 36beb77a655e78..d22aa8c1f9e8ab 100644 --- a/hw/top_earlgrey/ip_autogen/pwrmgr/BUILD +++ b/hw/top_earlgrey/ip_autogen/pwrmgr/BUILD @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"]) filegroup( name = "all_files", - srcs = glob(["**"]), + srcs = glob(["**"]) + [ + "//hw/ip_templates/pwrmgr/data:all_files", + ], ) diff --git a/hw/top_earlgrey/ip_autogen/rstmgr/BUILD b/hw/top_earlgrey/ip_autogen/rstmgr/BUILD index 36beb77a655e78..06f7d7bcb6ad5b 100644 --- a/hw/top_earlgrey/ip_autogen/rstmgr/BUILD +++ b/hw/top_earlgrey/ip_autogen/rstmgr/BUILD @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"]) filegroup( name = "all_files", - srcs = glob(["**"]), + srcs = glob(["**"]) + [ + "//hw/ip_templates/rstmgr/data:all_files", + ], )