All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/rustc: prepare for musl-based platforms support
Date: Tue, 18 May 2021 23:21:12 +0200	[thread overview]
Message-ID: <20210518212112.GE2506@scaer> (raw)
In-Reply-To: <20210518205432.133118-2-thomas.petazzoni@bootlin.com>

Nathaniel, Thomas, All,

On 2021-05-18 22:54 +0200, Thomas Petazzoni spake thusly:
> From: Nathaniel Husted <nathaniel.husted@outlook.com>
> 
> The current rustc package only supports configurations based on glibc
> and hardcodes this requirement. This patch prepares the addition of
> support for musl-based platforms by using $(LIBC) instead of
> hardcoding "gnu" as the C library specifier when defining
> RUSTC_TARGET_NAME.
> 
> Signed-off-by: Nathaniel Husted <nathaniel.husted@outlook.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

This first patch: Applied to next, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/rustc/rustc.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/rustc/rustc.mk b/package/rustc/rustc.mk
> index 35ffc36106..52860b7eff 100644
> --- a/package/rustc/rustc.mk
> +++ b/package/rustc/rustc.mk
> @@ -8,7 +8,7 @@ RUSTC_ARCH = $(call qstrip,$(BR2_PACKAGE_HOST_RUSTC_ARCH))
>  RUSTC_ABI = $(call qstrip,$(BR2_PACKAGE_HOST_RUSTC_ABI))
>  
>  ifeq ($(BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS),y)
> -RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-gnu$(RUSTC_ABI)
> +RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-$(LIBC)$(RUSTC_ABI)
>  endif
>  
>  ifeq ($(HOSTARCH),x86)
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=20210518212112.GE2506@scaer \
    --to=yann.morin.1998@free.fr \
    --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.