From 14d065b5bde2c823bbad454c566d328b03ad7ade Mon Sep 17 00:00:00 2001 From: Julien Boibessot Date: Mon, 8 Feb 2010 18:39:19 +0100 Subject: [PATCH] liboil: fix build on arm with softfloat This patch, gotten from liboil git (recent commit), fixes the problem. Signed-off-by: Julien Boibessot Signed-off-by: Peter Korsgaard --- CHANGES | 12 +++--- ...0.3.15-fixes-arm-softfloat-build.patch.arm | 39 +++++++++++++++++++ 2 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 package/liboil/liboil-0.3.15-fixes-arm-softfloat-build.patch.arm diff --git a/CHANGES b/CHANGES index 3809ac4431..c2ff21a493 100644 --- a/CHANGES +++ b/CHANGES @@ -7,12 +7,12 @@ Updated/fixed packages: alsa-lib, alsa-utils, at, autoconf, bash, bind, binutils, bootutils, busybox, dbus, directfb, dnsmasq, - e2fsprogs, gstreamer, gperf, gst-plugins-bad, gvfs, fbdump, flex, hal, - iptables, iw, jpeg, kismet, libfuse, libglib2, libpcap, libungif, - libxml2, libxslt, lighttpd, mesa, mpg123, mtd-utils, newt, nbd, neon, - netstat-nat, openvpn, pcre, php, qt, rdesktop, readline, rpm, sawman, - sdl, sdl_ttf, sqlite, sshfs, tremor, u-boot, usb_modeswitch, usbutils, - webkit, wpa_supplicant, xfsprogs, zlib + e2fsprogs, gstreamer, gperf, gst-plugins-bad, gvfs, fbdump, flex, + hal, iptables, iw, jpeg, kismet, libfuse, libglib2, liboil, libpcap, + libungif, libxml2, libxslt, lighttpd, mesa, mpg123, mtd-utils, nbd, + neon, netstat-nat, newt, openvpn, pcre, php, qt, rdesktop, readline, + rpm, sawman, sdl, sdl_ttf, sqlite, sshfs, tremor, u-boot, + usb_modeswitch, usbutils, webkit, wpa_supplicant, xfsprogs, zlib Removed package: openswan 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 0000000000..c9a2be30d3 --- /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 +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 + #include + +-#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 -- 2.30.2