How Can we use bazel for embedded system where toolchain is available on my PC. #24614
Replies: 1 comment
-
For the sake of completeness, I'll present two paths for creating a toolchain configuration: The new way: rules_cc rule-based toolchainsI just wrote a blog post about the work I've done on this, importantly there's a few (very real!) examples towards the end that use the The Raspberry Pi Pico's Bazel build uses these constructs. The old way: native Starlark primitivesThe current "official" tutorial for declaring a C++ toolchain is here, which I only list to acknowledge its existence. It's extremely easy to trip over the constructs and use them wrong, so I'd advise against going down that route. In the fullness of time, I hope to rewrite that tutorial using the new way, but that likely won't happen for a while. |
Beta Was this translation helpful? Give feedback.
-
I am trying to add tflite-micro to my project where I was using CMake earlier for building the project but then I realized that we need to use bazel to build the tflite-micro project so I am trying to migrate the whole project building process from CMake to Bazel but unfortunately I am unable to do so. currently I am lacking on toolchain configuration so that bazel use the
arm-none-eabi-gcc
andarm-none-eabi-g++
instead of my PC'sgcc and g++
can anyone help me regarding that. I am totally new in bazel it would be a great help to meBeta Was this translation helpful? Give feedback.
All reactions