All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/2] Add support for more rust platforms
Date: Tue, 18 May 2021 22:54:29 +0200	[thread overview]
Message-ID: <20210518205432.133118-1-thomas.petazzoni@bootlin.com> (raw)

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

             reply	other threads:[~2021-05-18 20:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18 20:54 Thomas Petazzoni [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210518205432.133118-1-thomas.petazzoni@bootlin.com \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.