]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: Add gcc configure for PowerPC e500v2/SPE embedded floating point ABI
authorKumar Gala <galak@kernel.crashing.org>
Tue, 19 Jul 2011 17:41:32 +0000 (12:41 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2011 14:24:57 +0000 (15:24 +0100)
The e500v2 core utilizes a unique floating point programming model / ABI.
We utilize TARGET_FPU = "ppc-efd" to distinguish this choice (Embedded
scalar single-precision floating-point).  When building the toolchain for
this ABI we need configure gcc with --enable-e500_double.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
meta/recipes-devtools/gcc/gcc-4.6.inc
meta/recipes-devtools/gcc/gcc-common.inc

index 8af5369100ffb97b4cb5113985e4884eb45c3e56..a636d32239b3e2577ea24a50eaafc9973679df97 100644 (file)
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r0"
+PR = "r1"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
index 7bf036cd86617256ce0e29e6505771d2349cb4c7..1684e78febd420029f40cd1650d137e320ca96ff 100644 (file)
@@ -12,6 +12,8 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
 def get_gcc_fpu_setting(bb, d):
     if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
         return "--with-float=soft"
+    if bb.data.getVar('TARGET_FPU', d, 1) in [ 'ppc-efd' ]:
+        return "--enable-e500_double"
     return ""
 
 def get_gcc_mips_plt_setting(bb, d):