How to run the toolchain binaries use bazel run @bazel_embedded//toolchains/.....
#54
-
I've built a binary using bazel_embedded. It works great, thanks for all your work. Now, however, I want to run I want to avoid installing any toolchain in my host environment. All the tools should come from the bazel cache. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
All the tools downloaded as part of gcc-arm-none are exported and available under the target; @com_gcc_arm_none_eabi_compiler//:bin/arm-none-eabi-* So you could put together a quick prototype to build something using objdump like so (untested); genrule(
name = "my_elf_symbols",
srcs = [":my_elf"],
outs = ["my_elf_symbols.txt"],
cmd = "./$(location @com_gcc_arm_none_eabi_compiler//:bin/arm-none-eabi-objdump) -TC $(location :my_elf) > $@",
tools = ["@com_gcc_arm_none_eabi_compiler//:bin/arm-none-eabi-objdump"],
) If you are after something more sophisticated you might consider building some custom rules. You can also run those binaries directly e.g.
|
Beta Was this translation helpful? Give feedback.
All the tools downloaded as part of gcc-arm-none are exported and available under the target;
@com_gcc_arm_none_eabi_compiler//:bin/arm-none-eabi-*
So you could put together a quick prototype to build something using objdump like so (untested);
If you are after something more sophisticated you might consider building some custom rules.
You can also run those binaries directly e.g.
bazel run @com_gcc_ar…