All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] Add support for more rust platforms
@ 2021-05-18 20:54 Thomas Petazzoni
  2021-05-18 20:54 ` [Buildroot] [PATCH 1/2] package/rustc: prepare for musl-based platforms support Thomas Petazzoni
  2021-05-18 20:54 ` [Buildroot] [PATCH 2/2] package/rustc: add support for Tier 1 and Tier 2 platforms Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2021-05-18 20:54 UTC (permalink / raw)
  To: buildroot

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(-)

-- 
2.31.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-18 21:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 20:54 [Buildroot] [PATCH 0/2] Add support for more rust platforms Thomas Petazzoni
2021-05-18 20:54 ` [Buildroot] [PATCH 1/2] package/rustc: prepare for musl-based platforms support Thomas Petazzoni
2021-05-18 21:21   ` Yann E. MORIN
2021-05-18 20:54 ` [Buildroot] [PATCH 2/2] package/rustc: add support for Tier 1 and Tier 2 platforms Thomas Petazzoni
2021-05-18 21:49   ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.