Added Bazel toolchain configuration for ARM's GNU toolchain. - https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain - GCC 8.3-2019.03 This configuration handles following CPU and build config_settings. - armhf: linux_armhf - aarch64: linux_aarch64 PiperOrigin-RevId: 306351085 Change-Id: I479d52e2243be9f75888ea81c7250e9072825da5
82 lines
1.2 KiB
Plaintext
82 lines
1.2 KiB
Plaintext
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "gcc",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-gcc",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "ar",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-ar",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "ld",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-ld",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "nm",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-nm",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "objcopy",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-objcopy",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "objdump",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-objdump",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "strip",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-strip",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "as",
|
|
srcs = [
|
|
"bin/arm-linux-gnueabihf-as",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "compiler_pieces",
|
|
srcs = glob([
|
|
"arm-linux-gnueabihf/**",
|
|
"libexec/**",
|
|
"lib/gcc/arm-linux-gnueabihf/**",
|
|
"include/**",
|
|
]),
|
|
)
|
|
|
|
filegroup(
|
|
name = "compiler_components",
|
|
srcs = [
|
|
":ar",
|
|
":as",
|
|
":gcc",
|
|
":ld",
|
|
":nm",
|
|
":objcopy",
|
|
":objdump",
|
|
":strip",
|
|
],
|
|
)
|