From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] arch/arm: use EABIhf by default with VFP
Date: Mon, 26 Oct 2015 08:47:54 +0100 [thread overview]
Message-ID: <87bnbmdqad.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20151026013217.60ad1af8@free-electrons.com> (Thomas Petazzoni's message of "Mon, 26 Oct 2015 01:32:17 +0100")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> Dear Peter Korsgaard,
> On Sun, 25 Oct 2015 19:53:06 +0100, Peter Korsgaard wrote:
>> > diff --git a/arch/Config.in.arm b/arch/Config.in.arm
>> > index 4d10f4c..f0110b1 100644
>> > --- a/arch/Config.in.arm
>> > +++ b/arch/Config.in.arm
>> > @@ -188,6 +188,7 @@ endchoice
>> > choice
>> > prompt "Target ABI"
>> > depends on BR2_arm || BR2_armeb
>> > + default BR2_ARM_EABIHF if BR2_ARM_CPU_MAYBE_HAS_VFPV2 || BR2_ARM_CPU_HAS_VFPV2
>>
>> I think we should only do it when we are certain it will run,
>> E.G. arm926 (our default variant) selects MAYBE_HAS_VFPV2, but it is
>> afaik quite rare to see arm9s with a vfp.
>>
>> Committed with that changed, thanks.
> default BR2_ARM_EABIHF if BR2_ARM_CPU_MAYBE_HAS_VFPV2 || BR2_ARM_CPU_HAS_VFPV2
> was indeed wrong, since having BR2_ARM_CPU_MAYBE_HAS_VFPV2 does not
> indicate that the SoC has VFP.
Indeed.
> However, unlike BR2_ARM_CPU_HAS_NEON which gets selected even on ARM
> cores for which NEON is optional, but for which the user has explicitly
> requested NEON support to be enabled (through BR2_ARM_ENABLE_NEON), it
> is not the case for the VFP option. I think we should do that.
> Otherwise, BR2_ARM_CPU_HAS_VFPV2 will not be true, even if the VFPv2
> unit is actually available and used.
But packages should use the BR2_ARM_FPU_VFPV2 (and 3/4) symbols to check
if they should use the VFP, and not BR2_ARM_CPU_MAYBE_HAS_VFPV2 || BR2_ARM_CPU_HAS_VFPV2
I don't think kconfig will let us both have these options depend on
BR2_ARM_CPU_MAYBE_HAS_VFPV2 || BR2_ARM_CPU_HAS_VFPV2 and select
BR2_ARM_CPU_HAS_VFPV2.
--
Venlig hilsen,
Peter Korsgaard
next prev parent reply other threads:[~2015-10-26 7:47 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-19 22:23 [Buildroot] rpi: image generation Benoît Thébaudeau
2015-08-20 7:59 ` Thomas Petazzoni
2015-08-20 14:30 ` Vivien Didelot
2015-08-22 20:01 ` [Buildroot] [PATCH 1/4] configs/raspberrypi: use EABIhf Benoît Thébaudeau
2015-08-22 20:01 ` [Buildroot] [PATCH 2/4] board/raspberrypi: prepare the image files for the target Benoît Thébaudeau
2015-10-17 11:45 ` Yann E. MORIN
2015-10-17 13:52 ` Benoît Thébaudeau
2015-08-22 20:01 ` [Buildroot] [PATCH 3/4] board/raspberrypi: generate a medium image Benoît Thébaudeau
2015-08-22 20:01 ` [Buildroot] [PATCH 4/4] board/raspberrypi: auto-expand rootfs on first boot Benoît Thébaudeau
2015-08-27 9:02 ` Benoît Thébaudeau
2015-08-27 21:22 ` Jérôme Pouiller
2015-08-28 10:36 ` Benoît Thébaudeau
2015-08-28 11:15 ` Benoît Thébaudeau
[not found] ` <4057940.fE2DsQZqLb@sagittea>
2015-08-31 9:11 ` Benoît Thébaudeau
2015-08-31 12:17 ` Floris Bos
2015-08-31 18:53 ` Benoît Thébaudeau
2015-08-31 13:25 ` Floris Bos
2015-08-31 19:05 ` Benoît Thébaudeau
2015-10-12 21:59 ` [Buildroot] [PATCH 1/4] configs/raspberrypi: use EABIhf Thomas Petazzoni
2015-10-12 23:17 ` Benoît Thébaudeau
2015-10-13 7:06 ` Arnout Vandecappelle
2015-10-15 20:11 ` Peter Korsgaard
2015-10-15 21:12 ` Peter Korsgaard
2015-10-25 15:19 ` [Buildroot] [PATCH] arch/arm: use EABIhf by default with VFP Benoît Thébaudeau
2015-10-25 18:53 ` Peter Korsgaard
2015-10-26 0:32 ` Thomas Petazzoni
2015-10-26 7:47 ` Peter Korsgaard [this message]
2015-10-26 8:25 ` Thomas Petazzoni
2015-10-26 8:51 ` Peter Korsgaard
2015-10-25 18:55 ` Peter Korsgaard
2015-10-25 20:27 ` Benoît Thébaudeau
2015-10-25 20:40 ` Peter Korsgaard
2015-10-25 20:52 ` Benoît Thébaudeau
2015-10-25 21:30 ` 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=87bnbmdqad.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox