Patchwork [2/3] feature-arm-d16.inc: add feature for arm cores which do not have a neon unit or no support for it in the kernel

login
register
mail settings
Submitter Henning Heinold
Date Sept. 25, 2011, 7:37 p.m.
Message ID <1316979467-687-3-git-send-email-heinold@inf.fu-berlin.de>
Download mbox | patch
Permalink /patch/12121/
State New, archived
Headers show

Comments

Henning Heinold - Sept. 25, 2011, 7:37 p.m.
* call it d16 because of the -mfpu=vfpv3-d16 gcc option and
  avoid naming conflicts with vfp feature

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
---
 meta/conf/machine/include/arm/feature-arm-d16.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 meta/conf/machine/include/arm/feature-arm-d16.inc
Koen Kooi - Sept. 25, 2011, 7:53 p.m.
Op 25 sep. 2011, om 21:37 heeft Henning Heinold het volgende geschreven:

> * call it d16 because of the -mfpu=vfpv3-d16 gcc option and
>  avoid naming conflicts with vfp feature

That's a highly artificial seperation to be honest. Is there really any demonstrable real world use to it?
Henning Heinold - Sept. 25, 2011, 8:04 p.m.
On Sun, Sep 25, 2011 at 09:53:08PM +0200, Koen Kooi wrote:
> 
> Op 25 sep. 2011, om 21:37 heeft Henning Heinold het volgende geschreven:
> 
> > * call it d16 because of the -mfpu=vfpv3-d16 gcc option and
> >  avoid naming conflicts with vfp feature
> 
> That's a highly artificial seperation to be honest. Is there really any demonstrable real world use to it?

Hi Koen,                                                                                                                           
                                                                                                                                   
do you mean it's really useless gcc option at all or did you mean how to use it in machine.inc file?                              

Bye Henning                                                                                                                        
                                                                                                                                   
PS: Sorry for posting it twice.

Patch

diff --git a/meta/conf/machine/include/arm/feature-arm-d16.inc b/meta/conf/machine/include/arm/feature-arm-d16.inc
new file mode 100644
index 0000000..1230ee9
--- /dev/null
+++ b/meta/conf/machine/include/arm/feature-arm-d16.inc
@@ -0,0 +1,3 @@ 
+TUNEVALID[d16] = "Enable SIMD accelerator unit on cores which don't have neon."
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "d16", "-mfpu=vfpv3-d16", "" ,d)}"
+ARMPKGSFX_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "d16", "-d16", "" ,d)}"