Skip to content

Commit

Permalink
[top_darjeeling] Move ast and sensor_ctrl to new rules
Browse files Browse the repository at this point in the history
Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Nov 22, 2024
1 parent 8a43682 commit d1345ca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 54 deletions.
11 changes: 6 additions & 5 deletions hw/top_darjeeling/ip/ast/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules/opentitan:hw.bzl", "opentitan_ip")

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

filegroup(
name = "all_files",
srcs = glob(["**"]) + [
"//hw/top_darjeeling/ip/ast/data:all_files",
],
opentitan_ip(
name = "ast",
files = glob(["**"]),
hjson = "//hw/top_darjeeling/ip/ast/data:hjson",
)
24 changes: 2 additions & 22 deletions hw/top_darjeeling/ip/ast/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,7 @@

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

load(
"//rules:autogen.bzl",
"autogen_hjson_c_header",
"autogen_hjson_rust_header",
)

autogen_hjson_c_header(
name = "ast_c_regs",
srcs = [
"ast.hjson",
],
)

autogen_hjson_rust_header(
name = "ast_rust_regs",
srcs = [
"ast.hjson",
],
)

filegroup(
name = "all_files",
srcs = glob(["**"]),
name = "hjson",
srcs = ["ast.hjson"],
)
9 changes: 4 additions & 5 deletions hw/top_darjeeling/ip/sensor_ctrl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

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

filegroup(
name = "all_files",
srcs = glob(["**"]) + [
"//hw/top_darjeeling/ip/sensor_ctrl/data:all_files",
],
opentitan_ip(
name = "sensor_ctrl",
files = glob(["**"]),
hjson = "//hw/top_earlgrey/ip/sensor_ctrl/data:hjson",
)
24 changes: 2 additions & 22 deletions hw/top_darjeeling/ip/sensor_ctrl/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,7 @@

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

load(
"//rules:autogen.bzl",
"autogen_hjson_c_header",
"autogen_hjson_rust_header",
)

autogen_hjson_c_header(
name = "sensor_ctrl_c_regs",
srcs = [
"sensor_ctrl.hjson",
],
)

autogen_hjson_rust_header(
name = "sensor_ctrl_rust_regs",
srcs = [
"sensor_ctrl.hjson",
],
)

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

0 comments on commit d1345ca

Please sign in to comment.