From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/8] arch: Refactor BR2_SOFT_FLOAT into per-architecture options
Date: Sun, 07 Jul 2013 22:24:05 +0200 [thread overview]
Message-ID: <87vc4mglui.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1373123292-15085-3-git-send-email-thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Sat, 6 Jul 2013 17:08:06 +0200")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> As we are going to introduced a more advanced support of floating
Thomas> point options for the ARM architecture, we need to adjust how the
Thomas> soft-float option is handled. We replace the current hidden option
Thomas> BR2_PREFER_SOFT_FLOAT option and the visible BR2_SOFT_FLOAT option by:
Thomas> * A global hidden BR2_SOFT_FLOAT option, defined in arch/Config.in,
Thomas> that tells whether the architecture-specific code is using software
Thomas> emulated floating point. This hidden option can be used throughout
Thomas> Buildroot to determine whether soft float is used or not.
Thomas> * Per-architecture visible BR2_<arch>_SOFT_FLOAT options, for the
Thomas> architecture for which it makes sense, which allows users to select
Thomas> soft float emulation when needed.
Thomas> This change will allow each architecture to have a different way of
Thomas> presenting its floating point capabilities.
Thomas> diff --git a/arch/Config.in.avr32 b/arch/Config.in.avr32
Thomas> index ebf8454..34055d9 100644
Thomas> --- a/arch/Config.in.avr32
Thomas> +++ b/arch/Config.in.avr32
Thomas> @@ -3,3 +3,13 @@ config BR2_ARCH
Thomas> config BR2_ENDIAN
Thomas> default "BIG"
Thomas> +
Thomas> +config BR2_AVR32_SOFT_FLOAT
Thomas> + bool "Use soft-float"
Thomas> + default y
Thomas> + select BR2_SOFT_FLOAT
Thomas> + help
Thomas> + If your target CPU does not have a Floating Point Unit (FPU)
Thomas> + or a kernel FPU emulator, but you still wish to support
Thomas> + floating point functions, then everything will need to be
Thomas> + compiled with soft floating point support (-msoft-float).
Does avr32 SoCs with hard float even exist? Does
uClibc/kernel/.. support it? If not, we could just make this a hidden
option.
Thomas> +config BR2_POWERPC_SOFT_FLOAT
Thomas> + bool "Use soft-float"
Thomas> + default y
Thomas> + select BR2_SOFT_FLOAT
Thomas> + help
Thomas> + If your target CPU does not have a Floating Point Unit (FPU)
Thomas> + or a kernel FPU emulator, but you still wish to support
Thomas> + floating point functions, then everything will need to be
Thomas> + compiled with soft floating point support (-msoft-float).
We didn't use to default to soft float for powerpc, as most cores have a
FPU.
Thomas> -config BR2_PREFER_SOFT_FLOAT
Thomas> - bool
Thomas> - default y if BR2_arm
Thomas> - default y if BR2_armeb
Thomas> - default y if BR2_avr32
Thomas> - default y if BR2_mips
Thomas> - default y if BR2_mipsel
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2013-07-07 20:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-06 15:08 [Buildroot] [PATCH 0/8] ARM floating point improvements and EABIhf support Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 1/8] arch: introduce BR2_GCC_TARGET_{FPU, FLOAT} Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 2/8] arch: Refactor BR2_SOFT_FLOAT into per-architecture options Thomas Petazzoni
2013-07-07 20:24 ` Peter Korsgaard [this message]
2013-07-08 14:02 ` Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 3/8] arch: improve ARM floating point support and add support for EABIhf Thomas Petazzoni
2013-07-07 20:44 ` Peter Korsgaard
2013-07-08 14:05 ` Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 4/8] binutils: exclude binutils versions that don't support EABIhf Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 5/8] gcc: take into account ARM floating point capabilities Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 6/8] toolchain: remove the old BR2_VFP_FLOAT option Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 7/8] configs: update defconfigs after VFP option changes Thomas Petazzoni
2013-07-06 15:08 ` [Buildroot] [PATCH 8/8] toolchain-external: update config options after EABIhf introduction Thomas Petazzoni
2013-07-07 20:45 ` [Buildroot] [PATCH 0/8] ARM floating point improvements and EABIhf support Peter Korsgaard
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=87vc4mglui.fsf@dell.be.48ers.dk \
--to=jacmet@uclibc.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox