[oe-commits] Phil Blundell : mpfr: crusade against inline assembler
GIT User account
git at amethyst.openembedded.net
Mon Oct 27 22:35:50 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 84021b1e236508169be65e802a9c0a25fc9a8827
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=84021b1e236508169be65e802a9c0a25fc9a8827
Author: Phil Blundell <philb at gnu.org>
Date: Mon Oct 27 22:26:35 2008 +0000
mpfr: crusade against inline assembler
---
packages/mpfr/long-long-thumb.patch | 11 +++++++++++
packages/mpfr/mpfr_2.3.1.bb | 3 ++-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/packages/mpfr/long-long-thumb.patch b/packages/mpfr/long-long-thumb.patch
new file mode 100644
index 0000000..a4029d7
--- /dev/null
+++ b/packages/mpfr/long-long-thumb.patch
@@ -0,0 +1,11 @@
+--- mpfr-2.3.1/mpfr-longlong.h~ 2008-01-01 03:29:09.000000000 +0000
++++ mpfr-2.3.1/mpfr-longlong.h 2008-10-27 21:46:44.000000000 +0000
+@@ -406,7 +406,7 @@
+ "rIJ" ((USItype) (bl)))
+ #endif
+
+-#if defined (__arm__) && W_TYPE_SIZE == 32
++#if defined (__arm__) && W_TYPE_SIZE == 32 && !defined(__thumb__)
+ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
+ __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \
+ : "=r" (sh), "=&r" (sl) \
diff --git a/packages/mpfr/mpfr_2.3.1.bb b/packages/mpfr/mpfr_2.3.1.bb
index db04ce0..8da9c0e 100644
--- a/packages/mpfr/mpfr_2.3.1.bb
+++ b/packages/mpfr/mpfr_2.3.1.bb
@@ -3,7 +3,8 @@ require mpfr.inc
DEPENDS = "gmp"
PR = "r0"
-SRC_URI = "http://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.bz2"
+SRC_URI = "http://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.bz2 \
+ file://long-long-thumb.patch;patch=1"
S = "${WORKDIR}/mpfr-${PV}"
do_stage() {
More information about the Openembedded-commits
mailing list