Skip to content

Commit

Permalink
[ARCHIVES] move under toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdae committed Apr 4, 2024
1 parent 85ea89c commit 8c5ce62
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 29 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ arm_toolchain = use_extension("@toolchains_arm_gnu//:extensions.bzl", "arm_toolc
# version is added--otherwise the Minimum Selected Version algorithm in the
# module extension will select the version here if a consumer attempts to use
# the newer toolchain.
arm_toolchain.arm_none_eabi(version = "13.2.1")
arm_toolchain.arm_none_eabi(version = "13.2.1-1.1")
use_repo(
arm_toolchain,
"arm_none_eabi",
Expand Down
52 changes: 28 additions & 24 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions deps.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""deps.bzl"""

load("@toolchains_arm_gnu//archive:arm_none_eabi.bzl", "ARM_NONE_EABI")
load("@toolchains_arm_gnu//archive:arm_none_linux_gnueabihf.bzl", "ARM_NONE_LINUX_GNUEABIHF")
load("@toolchains_arm_gnu//toolchain/archives:arm_none_eabi.bzl", "ARM_NONE_EABI")
load("@toolchains_arm_gnu//toolchain/archives:arm_none_linux_gnueabihf.bzl", "ARM_NONE_LINUX_GNUEABIHF")
load("@toolchains_arm_gnu//toolchain:toolchain.bzl", "register_arm_gnu_toolchain", "target_constraints")

def _arm_gnu_cross_hosted_platform_specific_repo_impl(repository_ctx):
Expand All @@ -16,7 +16,7 @@ def _arm_gnu_cross_hosted_platform_specific_repo_impl(repository_ctx):
Label("@toolchains_arm_gnu//toolchain:templates/compiler.BUILD"),
substitutions = {
"%toolchain_prefix%": repository_ctx.attr.toolchain_prefix,
"%version%": repository_ctx.attr.version,
"%version%": repository_ctx.attr.version.split("-")[0],
"%bin_extension%": repository_ctx.attr.bin_extension,
},
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion archive/README.md → toolchain/archives/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Publicly hosted archives
The toolchains can be autogenerated from github for convenience

```bash
bazel run //archive:generate --toolchain <prefix>
bazel run //toolchain/archives:generate --toolchain <prefix>
```
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8c5ce62

Please sign in to comment.