All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/6] toolchain-external: add publicly available musl toolchains
Date: Thu, 06 Mar 2014 08:17:20 +0100	[thread overview]
Message-ID: <53182100.8020505@mind.be> (raw)
In-Reply-To: <1394058220-5863-3-git-send-email-thomas.petazzoni@free-electrons.com>

On 05/03/14 23:23, Thomas Petazzoni wrote:
> This commit adds nine toolchains based on the musl C library that are
> publicly available from the musl-cross project. Note that toolchains
> prior to version 0.9.15 cannot be used in Buildroot because they don't
> have sysroot support.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  toolchain/toolchain-external/Config.in             | 148 +++++++++++++++++++++
>  toolchain/toolchain-external/toolchain-external.mk |  27 ++++
>  2 files changed, 175 insertions(+)
> 
> diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
> index 7ad46c3..063df14 100644
> --- a/toolchain/toolchain-external/Config.in
> +++ b/toolchain/toolchain-external/Config.in
> @@ -842,6 +842,145 @@ config BR2_TOOLCHAIN_EXTERNAL_LINARO_AARCH64_13_09
>  	  Toolchain for the AArch64 architecture, from
>  	  http://www.linaro.org/engineering/armv8/
>  
> +config BR2_TOOLCHAIN_EXTERNAL_ARM_MUSL_CROSS
> +	bool "Musl ARM toolchain"
> +	depends on BR2_arm
> +	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"

 Not related to this patch, but why don't we move this depends to a
global if?

> +	select BR2_TOOLCHAIN_EXTERNAL_MUSL
> +	select BR2_INSTALL_LIBSTDCPP
> +	select BR2_HOSTARCH_NEEDS_IA32_LIBS
> +	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
> +	help
> +	  ARM toolchain based on the Musl C library, provided by the
> +	  musl-cross project. It uses gcc 4.8.2, binutils 2.24 and
> +	  musl 0.9.15. It does not have a cross debugger included. The
> +	  toolchain is built for ARMv4t, soft-float.
> +
> +	  http://musl.codu.org/

 All this MUSL stuff looks exactly the same. Wouldn't it be possible to
have a single config option with a depends on BR2_arm || BR2_i386 || ... ?


 Regards,
 Arnout

> +
> +config BR2_TOOLCHAIN_EXTERNAL_X86_MUSL_CROSS
> +	bool "Musl x86 toolchain"
> +	# The toolchain is built for i486, so we exclude i386
> +	depends on BR2_i386 && !BR2_x86_i386
> +	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> +	select BR2_TOOLCHAIN_EXTERNAL_MUSL
> +	select BR2_INSTALL_LIBSTDCPP
> +	select BR2_HOSTARCH_NEEDS_IA32_LIBS
> +	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
> +	help
> +	  x86 toolchain based on the Musl C library, provided by the
> +	  musl-cross project. It uses gcc 4.8.2, binutils 2.24 and
> +	  musl 0.9.15. It does not have a cross debugger included. The
> +	  toolchain is built for i486.
> +
> +	  http://musl.codu.org/
> +
> +config BR2_TOOLCHAIN_EXTERNAL_MICROBLAZE_MUSL_CROSS
> +	bool "Musl Microblaze toolchain"
> +	depends on BR2_microblaze
> +	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> +	select BR2_TOOLCHAIN_EXTERNAL_MUSL
> +	select BR2_INSTALL_LIBSTDCPP
> +	select BR2_HOSTARCH_NEEDS_IA32_LIBS
> +	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
> +	help
> +	  Microblaze toolchain based on the Musl C library, provided
> +	  by the musl-cross project. It uses gcc 4.8.2, binutils 2.24
> +	  and musl 0.9.15. It does not have a cross debugger
> +	  included.
> +
> +	  http://musl.codu.org/

[snip]


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2014-03-06  7:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05 22:23 [Buildroot] [PATCH 0/6] External toolchain updates Thomas Petazzoni
2014-03-05 22:23 ` [Buildroot] [PATCH 1/6] toolchain-external: fix musl external support on x86 Thomas Petazzoni
2014-03-06  7:09   ` Arnout Vandecappelle
2014-03-05 22:23 ` [Buildroot] [PATCH 2/6] toolchain-external: add publicly available musl toolchains Thomas Petazzoni
2014-03-06  7:17   ` Arnout Vandecappelle [this message]
2014-03-05 22:23 ` [Buildroot] [PATCH 3/6] toolchain-external: bump Linaro ARM toolchains Thomas Petazzoni
2014-03-05 22:23 ` [Buildroot] [PATCH 4/6] toolchain-external: remove useless info in help text of " Thomas Petazzoni
2014-03-05 22:39   ` Yann E. MORIN
2014-03-05 22:23 ` [Buildroot] [PATCH 5/6] toolchain-external: bump Linaro AArch64 toolchains Thomas Petazzoni
2014-03-05 22:23 ` [Buildroot] [PATCH 6/6] toolchain-external: add Linaro ARM big endian toolchain Thomas Petazzoni
2014-03-06 22:23   ` Peter Korsgaard
2014-03-06 22:30     ` Thomas Petazzoni
2014-03-06 22:41       ` 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=53182100.8020505@mind.be \
    --to=arnout@mind.be \
    --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.