Skip to content

Add support for more rust platforms

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/rustc: prepare for musl-based platforms supportpackage/rustc/rustc.mk+1 -11 reply
2/2package/rustc: add support for Tier 1 and Tier 2 platformspackage/rust-bin/rust-bin.hash package/rustc/Config.in.host+140 -121 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/2] Add support for more rust platforms

Hello,

This (small) patch series started from the patch from Nathaniel Husted enabling support for musl-based platforms in our Rust packaging.

Unfortunately, the patch from Nathaniel was not entirely correct:
indeed, not all CPU architectures have musl support in Rust, so simply replacing "depends on glibc" by "depends on glibc || musl" was not sufficient.

Instead, Rust has a classification of platforms by how well they are
supported: Tier 1 platforms, Tier 2 platforms with host tools, Tier 2 platforms without host tools, Tier 3 platforms.

In order to make it easier to keep track of which platforms are supported, this patch series rewrites how package/rustc/Config.in.host declares which platforms are supported, to map directly with the Tier 1, Tier 2 with host tools and Tier 2 without host tools platforms.

For the sake of simplicity, Tier 3 platforms are not supported at this point.

With this patch series, 3 new glibc-based platforms are supported, and 13 new musl-based platforms are supported.

The series is also available at:

https://github.com/tpetazzoni/buildroot/commits/rustc-arches

Thanks!

Thomas

Nathaniel Husted (1):
package/rustc: prepare for musl-based platforms support

Thomas Petazzoni (1):
package/rustc: add support for Tier 1 and Tier 2 platforms

 package/rust-bin/rust-bin.hash |  48 +++++++++++++++
 package/rustc/Config.in.host   | 104 +++++++++++++++++++++++++++++----
 package/rustc/rustc.mk         |   2 +-
 3 files changed, 141 insertions(+), 13 deletions(-)
Signature · 1 line
2.31.1