Skip to content

Commit

Permalink
[bazel] Fix constant exports
Browse files Browse the repository at this point in the history
`BUILD` files should now be using `defs.bzl` for these, so we don't need
to export them from other files too.

Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Oct 18, 2024
1 parent 0dd6a4f commit a9e80a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
14 changes: 1 addition & 13 deletions rules/opentitan/cc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

load("@rules_cc//cc:find_cc_toolchain.bzl", "find_cc_toolchain")
load(
"@lowrisc_opentitan//rules:rv.bzl",
"rv_rule",
_OPENTITAN_CPU = "OPENTITAN_CPU",
_OPENTITAN_PLATFORM = "OPENTITAN_PLATFORM",
_opentitan_transition = "opentitan_transition",
)
load("@lowrisc_opentitan//rules:rv.bzl", "rv_rule")
load("@lowrisc_opentitan//rules:signing.bzl", "sign_binary")
load("@lowrisc_opentitan//rules/opentitan:exec_env.bzl", "ExecEnvInfo")
load("@lowrisc_opentitan//rules/opentitan:util.bzl", "get_fallback", "get_override")
Expand All @@ -19,12 +13,6 @@ load(
"obj_transform",
)

# Re-exports of names from transition.bzl; many files in the repo use opentitan.bzl
# to get to them.
OPENTITAN_CPU = _OPENTITAN_CPU
OPENTITAN_PLATFORM = _OPENTITAN_PLATFORM
opentitan_transition = _opentitan_transition

def _expand(ctx, name, items):
"""Perform location and make_variable expansion on a list of items.
Expand Down
3 changes: 1 addition & 2 deletions rules/opentitan/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ load("@bazel_skylib//lib:sets.bzl", "sets")
# and opentitan_binary rules.
CLEAR_KEY_SET = {"//signing:none_key": "none_key"}

# Re-exports of names from transition.bzl; many files in the repo use opentitan.bzl
# to get to them.
# Re-exports of names from transition.bzl
OPENTITAN_CPU = _OPENTITAN_CPU
OPENTITAN_PLATFORM = _OPENTITAN_PLATFORM
opentitan_transition = _opentitan_transition
Expand Down

0 comments on commit a9e80a8

Please sign in to comment.