11"""deps.bzl"""
22
33load (
4- "@arm_gnu_toolchain //toolchain:toolchain.bzl" ,
4+ "@toolchains_arm_gnu //toolchain:toolchain.bzl" ,
55 "register_arm_gnu_toolchain" ,
66 "target_constraints" ,
77)
@@ -81,21 +81,21 @@ GCC_ARM_NONE_LINUX_GNUEABIHF = {
8181 "sha256" : "df0f4927a67d1fd366ff81e40bd8c385a9324fbdde60437a512d106215f257b3" ,
8282 "strip_prefix" : "arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf" ,
8383 "url" : "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz?rev=adb0c0238c934aeeaa12c09609c5e6fc&hash=68DA67DE12CBAD82A0FA4B75247E866155C93053" ,
84- "patches" : ["@arm_gnu_toolchain //toolchain:patches/0001-Resolve-libc-relative-to-sysroot.patch" ],
84+ "patches" : ["@toolchains_arm_gnu //toolchain:patches/0001-Resolve-libc-relative-to-sysroot.patch" ],
8585 },
8686 {
8787 "name" : "arm_none_linux_gnueabihf_linux_aarch64" ,
8888 "sha256" : "8ad384bb328bccc44396d85c8f8113b7b8c5e11bcfef322e77cda3ebe7baadb5" ,
8989 "strip_prefix" : "arm-gnu-toolchain-13.2.Rel1-aarch64-arm-none-linux-gnueabihf" ,
9090 "url" : "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-aarch64-arm-none-linux-gnueabihf.tar.xz?rev=fbdb67e76c8349e5ad27a7c40fb270c9&hash=8CD3EBFFDC5E211275B705F6F9BCC0F6F5B4A53E" ,
91- "patches" : ["@arm_gnu_toolchain //toolchain:patches/0001-Resolve-libc-relative-to-sysroot.patch" ],
91+ "patches" : ["@toolchains_arm_gnu //toolchain:patches/0001-Resolve-libc-relative-to-sysroot.patch" ],
9292 },
9393 {
9494 "name" : "arm_none_linux_gnueabihf_windows_x86_64" ,
9595 "sha256" : "047e72bcef8f7767691f36929a8c74ef66f717cf6264a31f48dd31bfb067f4c8" ,
9696 "strip_prefix" : "arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-linux-gnueabihf" ,
9797 "url" : "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-linux-gnueabihf.zip?rev=14b6dd20622a4beabb60a6ee41a4c141&hash=C1F9FA6DE8259B5ACA0211139F4304F2B942E489" ,
98- "patches" : ["@arm_gnu_toolchain //toolchain:patches/0001-Resolve-libc-relative-to-sysroot.patch" ],
98+ "patches" : ["@toolchains_arm_gnu //toolchain:patches/0001-Resolve-libc-relative-to-sysroot.patch" ],
9999 "bin_extension" : ".exe" ,
100100 },
101101 ],
@@ -110,7 +110,7 @@ def _arm_gnu_cross_hosted_platform_specific_repo_impl(repository_ctx):
110110 )
111111 repository_ctx .template (
112112 "BUILD.bazel" ,
113- Label ("@arm_gnu_toolchain //toolchain:templates/compiler.BUILD" ),
113+ Label ("@toolchains_arm_gnu //toolchain:templates/compiler.BUILD" ),
114114 substitutions = {
115115 "%toolchain_prefix%" : repository_ctx .attr .toolchain_prefix ,
116116 "%version%" : repository_ctx .attr .version ,
@@ -137,7 +137,7 @@ def _arm_gnu_toolchain_repo_impl(repository_ctx):
137137 """Defines the top-level toolchain repository."""
138138 repository_ctx .template (
139139 "BUILD" ,
140- Label ("@arm_gnu_toolchain //toolchain:templates/top.BUILD" ),
140+ Label ("@toolchains_arm_gnu //toolchain:templates/top.BUILD" ),
141141 substitutions = {
142142 "%toolchain_name%" : repository_ctx .attr .toolchain_name ,
143143 "%version%" : repository_ctx .attr .version ,
@@ -147,15 +147,15 @@ def _arm_gnu_toolchain_repo_impl(repository_ctx):
147147
148148 repository_ctx .template (
149149 "toolchain/BUILD" ,
150- Label ("@arm_gnu_toolchain //toolchain:templates/toolchain.BUILD" ),
150+ Label ("@toolchains_arm_gnu //toolchain:templates/toolchain.BUILD" ),
151151 substitutions = {
152152 "%toolchain_name%" : repository_ctx .attr .toolchain_name ,
153153 "%version%" : repository_ctx .attr .version ,
154154 "%toolchain_prefix%" : repository_ctx .attr .toolchain_prefix ,
155155 },
156156 )
157157
158- arm_gnu_toolchain_repo = repository_rule (
158+ toolchains_arm_gnu_repo = repository_rule (
159159 implementation = _arm_gnu_toolchain_repo_impl ,
160160 attrs = {
161161 "toolchain_name" : attr .string (mandatory = True ),
@@ -164,8 +164,8 @@ arm_gnu_toolchain_repo = repository_rule(
164164 },
165165)
166166
167- def arm_gnu_toolchain_deps (toolchain , toolchain_prefix , version , archives ):
168- arm_gnu_toolchain_repo (
167+ def toolchains_arm_gnu_deps (toolchain , toolchain_prefix , version , archives ):
168+ toolchains_arm_gnu_repo (
169169 name = toolchain ,
170170 toolchain_name = toolchain ,
171171 toolchain_prefix = toolchain_prefix ,
@@ -195,7 +195,7 @@ def arm_none_eabi_deps(version = "13.2.1", archives = GCC_ARM_NONE_EABI):
195195 version: The version of the toolchain to use. If None, the latest version is used.
196196 archives: A dictionary of version to archive attributes.
197197 """
198- arm_gnu_toolchain_deps (
198+ toolchains_arm_gnu_deps (
199199 "arm_none_eabi" ,
200200 "arm-none-eabi" ,
201201 version ,
@@ -217,7 +217,7 @@ def arm_none_linux_gnueabihf_deps(version = "13.2.1", archives = GCC_ARM_NONE_LI
217217 version: The version of the toolchain to use. If None, the latest version is used.
218218 archives: A dictionary of the version to archive attributes.
219219 """
220- arm_gnu_toolchain_deps (
220+ toolchains_arm_gnu_deps (
221221 "arm_none_linux_gnueabihf" ,
222222 "arm-none-linux-gnueabihf" ,
223223 version ,
0 commit comments