Skip to content

Commit

Permalink
[bazel,hw] exclude DV and doc files from hw/top_earlgrey/ip/*/BUILD
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Guo <[email protected]>
  • Loading branch information
nbdd0121 committed Jan 16, 2025
1 parent 52631ac commit 044239e
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 20 deletions.
2 changes: 1 addition & 1 deletion hw/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions hw/top_earlgrey/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)
Expand Down
12 changes: 6 additions & 6 deletions hw/top_earlgrey/ip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions hw/top_earlgrey/ip/ast/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)
11 changes: 9 additions & 2 deletions hw/top_earlgrey/ip/sensor_ctrl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)
12 changes: 9 additions & 3 deletions hw/top_earlgrey/ip/xbar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
),
)
11 changes: 9 additions & 2 deletions hw/top_earlgrey/ip/xbar_main/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)
11 changes: 9 additions & 2 deletions hw/top_earlgrey/ip/xbar_peri/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)

0 comments on commit 044239e

Please sign in to comment.