From 044239e6160920b97363ec8d9f37f1dd7544fcbf Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 16 Jan 2025 17:19:35 +0000 Subject: [PATCH] [bazel,hw] exclude DV and doc files from hw/top_earlgrey/ip/*/BUILD Signed-off-by: Gary Guo --- hw/BUILD | 2 +- hw/top_earlgrey/BUILD | 4 ++-- hw/top_earlgrey/ip/BUILD | 12 ++++++------ hw/top_earlgrey/ip/ast/BUILD | 11 +++++++++-- hw/top_earlgrey/ip/sensor_ctrl/BUILD | 11 +++++++++-- hw/top_earlgrey/ip/xbar/BUILD | 12 +++++++++--- hw/top_earlgrey/ip/xbar_main/BUILD | 11 +++++++++-- hw/top_earlgrey/ip/xbar_peri/BUILD | 11 +++++++++-- 8 files changed, 54 insertions(+), 20 deletions(-) diff --git a/hw/BUILD b/hw/BUILD index da43dfe4b6ee4..67d18ac8627ce 100644 --- a/hw/BUILD +++ b/hw/BUILD @@ -129,7 +129,7 @@ filegroup( ) + [ "//:tool_requirements.py", "//hw/ip:rtl_files", - "//hw/top_earlgrey:all_files", + "//hw/top_earlgrey:rtl_files", "//util:check_tool_requirements.py", ], visibility = ["//visibility:public"], diff --git a/hw/top_earlgrey/BUILD b/hw/top_earlgrey/BUILD index 4a3f3d4bb7a3b..1b2288c35271d 100644 --- a/hw/top_earlgrey/BUILD +++ b/hw/top_earlgrey/BUILD @@ -18,11 +18,11 @@ load( package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", + name = "rtl_files", srcs = glob(["**"]) + [ "//hw/top_earlgrey/data:all_files", "//hw/top_earlgrey/dv/verilator:all_files", - "//hw/top_earlgrey/ip:all_files", + "//hw/top_earlgrey/ip:rtl_files", "//hw/top_earlgrey/sw:all_files", ], ) diff --git a/hw/top_earlgrey/ip/BUILD b/hw/top_earlgrey/ip/BUILD index 07841e8253a77..f8c31bc9e3c43 100644 --- a/hw/top_earlgrey/ip/BUILD +++ b/hw/top_earlgrey/ip/BUILD @@ -5,13 +5,13 @@ package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", + name = "rtl_files", srcs = glob(["**"]) + [ - "//hw/top_earlgrey/ip/ast:all_files", - "//hw/top_earlgrey/ip/sensor_ctrl:all_files", - "//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/ast:rtl_files", + "//hw/top_earlgrey/ip/sensor_ctrl:rtl_files", + "//hw/top_earlgrey/ip/xbar:rtl_files", + "//hw/top_earlgrey/ip/xbar_main:rtl_files", + "//hw/top_earlgrey/ip/xbar_peri:rtl_files", "//hw/top_earlgrey/ip_autogen/alert_handler:rtl_files", "//hw/top_earlgrey/ip_autogen/clkmgr:rtl_files", "//hw/top_earlgrey/ip_autogen/flash_ctrl:rtl_files", diff --git a/hw/top_earlgrey/ip/ast/BUILD b/hw/top_earlgrey/ip/ast/BUILD index fdcf9741681f8..eff2d6e667d26 100644 --- a/hw/top_earlgrey/ip/ast/BUILD +++ b/hw/top_earlgrey/ip/ast/BUILD @@ -5,8 +5,15 @@ package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", - srcs = glob(["**"]) + [ + name = "rtl_files", + srcs = glob( + ["**"], + exclude = [ + "dv/**", + "doc/**", + "README.md", + ], + ) + [ "//hw/top_earlgrey/ip/ast/data:all_files", ], ) diff --git a/hw/top_earlgrey/ip/sensor_ctrl/BUILD b/hw/top_earlgrey/ip/sensor_ctrl/BUILD index e76b743576c84..ae2247dbb6617 100644 --- a/hw/top_earlgrey/ip/sensor_ctrl/BUILD +++ b/hw/top_earlgrey/ip/sensor_ctrl/BUILD @@ -5,8 +5,15 @@ package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", - srcs = glob(["**"]) + [ + name = "rtl_files", + srcs = glob( + ["**"], + exclude = [ + "dv/**", + "doc/**", + "README.md", + ], + ) + [ "//hw/top_earlgrey/ip/sensor_ctrl/data:all_files", ], ) diff --git a/hw/top_earlgrey/ip/xbar/BUILD b/hw/top_earlgrey/ip/xbar/BUILD index f42854cd1b80c..f89399fa50368 100644 --- a/hw/top_earlgrey/ip/xbar/BUILD +++ b/hw/top_earlgrey/ip/xbar/BUILD @@ -5,7 +5,13 @@ package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", - srcs = glob(["**"]) + [ - ], + name = "rtl_files", + srcs = glob( + ["**"], + exclude = [ + "dv/**", + "doc/**", + "README.md", + ], + ), ) diff --git a/hw/top_earlgrey/ip/xbar_main/BUILD b/hw/top_earlgrey/ip/xbar_main/BUILD index 8bb336a9173c3..d2bbef69fc460 100644 --- a/hw/top_earlgrey/ip/xbar_main/BUILD +++ b/hw/top_earlgrey/ip/xbar_main/BUILD @@ -5,8 +5,15 @@ package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", - srcs = glob(["**"]) + [ + name = "rtl_files", + srcs = glob( + ["**"], + exclude = [ + "dv/**", + "doc/**", + "README.md", + ], + ) + [ "//hw/top_earlgrey/ip/xbar_main/data:all_files", ], ) diff --git a/hw/top_earlgrey/ip/xbar_peri/BUILD b/hw/top_earlgrey/ip/xbar_peri/BUILD index cf52d0975edcd..700fcf1ef55c8 100644 --- a/hw/top_earlgrey/ip/xbar_peri/BUILD +++ b/hw/top_earlgrey/ip/xbar_peri/BUILD @@ -5,8 +5,15 @@ package(default_visibility = ["//visibility:public"]) filegroup( - name = "all_files", - srcs = glob(["**"]) + [ + name = "rtl_files", + srcs = glob( + ["**"], + exclude = [ + "dv/**", + "doc/**", + "README.md", + ], + ) + [ "//hw/top_earlgrey/ip/xbar_peri/data:all_files", ], )