Skip to content

Commit

Permalink
[bazel] Update platform const locations
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Oct 18, 2024
1 parent b1e6006 commit 4c15302
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion rules/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_PLATFORM")
load("//rules/opentitan:defs.bzl", "OPENTITAN_PLATFORM")
load("//rules:stamp.bzl", "stamp_flag")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion sw/device/examples/hello_usbdev/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

load("//rules/opentitan:defs.bzl", "opentitan_binary")
load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

opentitan_binary(
name = "hello_usbdev",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/examples/teacup_demos/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

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

Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/crt/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

cc_library(
name = "crt",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/crypto/drivers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")
load(
"//rules/opentitan:defs.bzl",
"EARLGREY_TEST_ENVS",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/crypto/impl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

config_setting(
name = "crypto_status_debug",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/crypto/impl/ecc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

cc_library(
name = "ecdh_p256",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/crypto/impl/rsa/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

cc_library(
name = "rsa_datatypes",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/crypto/impl/sha2/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

cc_library(
name = "sha256",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/runtime/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")
load("//rules:cross_platform.bzl", "dual_cc_library", "dual_inputs")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/testing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

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

Expand Down
2 changes: 1 addition & 1 deletion sw/device/lib/testing/test_framework/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

load("//rules:cross_platform.bzl", "dual_cc_library", "dual_inputs")
load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")
load(
"//rules/opentitan:defs.bzl",
"EARLGREY_TEST_ENVS",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/silicon_creator/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ load(
)
load("//rules:autogen.bzl", "autogen_chip_info")
load("//rules:cross_platform.bzl", "dual_cc_device_library_of", "dual_cc_library", "dual_inputs")
load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")
load(
"//rules/opentitan:defs.bzl",
"EARLGREY_TEST_ENVS",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/silicon_owner/tock/apps/hello/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

load("@rules_rust//rust:defs.bzl", "rust_binary")
load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")
load("//rules:tock.bzl", "tock_elf2tab", "tock_image")

package(default_visibility = ["//visibility:public"])
Expand Down
3 changes: 2 additions & 1 deletion sw/device/silicon_owner/tock/kernel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

load("@rules_rust//rust:defs.bzl", "rust_binary")
load("//rules:linker.bzl", "ld_library")
load("//rules:opentitan.bzl", "OPENTITAN_CPU", "elf_to_disassembly", "obj_transform")
load("//rules:opentitan.bzl", "elf_to_disassembly", "obj_transform")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

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

Expand Down
3 changes: 2 additions & 1 deletion sw/device/silicon_owner/tock/upstream_kernel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

load("@rules_rust//rust:defs.bzl", "rust_binary")
load("//rules:linker.bzl", "ld_library")
load("//rules:opentitan.bzl", "OPENTITAN_CPU", "elf_to_disassembly", "obj_transform")
load("//rules:opentitan.bzl", "elf_to_disassembly", "obj_transform")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

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

Expand Down
2 changes: 1 addition & 1 deletion sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ load(
load(
"//rules:opentitan.bzl",
"ECDSA_ONLY_KEY_STRUCTS",
"OPENTITAN_CPU",
)
load(
"//rules:otp.bzl",
Expand All @@ -28,6 +27,7 @@ load(
"EARLGREY_CW340_TEST_ENVS",
"EARLGREY_SILICON_OWNER_ROM_EXT_ENVS",
"EARLGREY_TEST_ENVS",
"OPENTITAN_CPU",
"dv_params",
"ecdsa_key_for_lc_state",
"fpga_params",
Expand Down
2 changes: 1 addition & 1 deletion sw/device/tests/sim_dv/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "opentitan_test")

opentitan_test(
Expand Down
2 changes: 1 addition & 1 deletion third_party/freertos/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

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

Expand Down
2 changes: 1 addition & 1 deletion third_party/llvm_compiler_rt/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules:opentitan.bzl", "OPENTITAN_CPU")
load("//rules/opentitan:defs.bzl", "OPENTITAN_CPU")

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

Expand Down

0 comments on commit 4c15302

Please sign in to comment.