Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] liboil doesn't build on arm with softfloat (well at least on my arm926 platform).
@ 2010-02-08 17:39 julien.boibessot at free.fr
  2010-02-09 11:10 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: julien.boibessot at free.fr @ 2010-02-08 17:39 UTC (permalink / raw)
  To: buildroot

From: Julien Boibessot <julien.boibessot@armadeus.com>

This patch, got from liboil git (recent commit), fixes the problem.

Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
---
 ...boil-0.3.15-fixes-arm-softfloat-build.patch.arm |   39 ++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 package/liboil/liboil-0.3.15-fixes-arm-softfloat-build.patch.arm

diff --git a/package/liboil/liboil-0.3.15-fixes-arm-softfloat-build.patch.arm b/package/liboil/liboil-0.3.15-fixes-arm-softfloat-build.patch.arm
new file mode 100644
index 0000000..c9a2be3
--- /dev/null
+++ b/package/liboil/liboil-0.3.15-fixes-arm-softfloat-build.patch.arm
@@ -0,0 +1,39 @@
+Patch generated from:
+http://cgit.freedesktop.org/liboil/commit/?id=227782d45d14ca0d68ee73b54eab71c1582dcbfa
+
+From 227782d45d14ca0d68ee73b54eab71c1582dcbfa Mon Sep 17 00:00:00 2001
+From: Adrian Bunk <adrian.bunk@movial.com>
+Date: Wed, 09 Sep 2009 13:31:40 +0000
+Subject: fix ARM -mfloat-abi=soft builds
+
+If __SOFTFP__ is defined, VFP support is not available
+even when __VFP_FP__ is defined.
+---
+diff --git a/liboil/arm/math_vfp.c b/liboil/arm/math_vfp.c
+index ffd3981..0bed96e 100644
+--- a/liboil/arm/math_vfp.c
++++ b/liboil/arm/math_vfp.c
+@@ -30,7 +30,7 @@
+ #include <liboil/liboilclasses.h>
+ #include <liboil/liboilfunction.h>
+ 
+-#if __VFP_FP__
++#if defined(__VFP_FP__) && !defined(__SOFTFP__)
+ 
+ extern void vfp_add_f32 (float *d, const float *s1, const float *s2, int n);
+ extern void vfp_add_f64 (double *d, const double *s1, const double *s2, int n);
+diff --git a/liboil/arm/math_vfp_asm.S b/liboil/arm/math_vfp_asm.S
+index ea68dba..ae5c803 100644
+--- a/liboil/arm/math_vfp_asm.S
++++ b/liboil/arm/math_vfp_asm.S
+@@ -24,7 +24,7 @@
+  * SUCH DAMAGE.
+  */
+ 
+-#if __VFP_FP__
++#if defined(__VFP_FP__) && !defined(__SOFTFP__)
+ /* 
+ ** compile with -mcpu=arm1136j-s -mfpu=vfp -mfloat-abi=softfp
+ **
+--
+cgit v0.8.3-6-g21f6
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-09 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08 17:39 [Buildroot] [PATCH] liboil doesn't build on arm with softfloat (well at least on my arm926 platform) julien.boibessot at free.fr
2010-02-09 11:10 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox