[oe-commits] Phil Blundell : gnupg: disable eleet asm in mpi when compiling for thumb.

GIT User account git at amethyst.openembedded.net
Mon Oct 27 13:21:38 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 468cefb618f191a1d7a2ef778955553996a4afb5
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=468cefb618f191a1d7a2ef778955553996a4afb5

Author: Phil Blundell <philb at gnu.org>
Date:   Mon Oct 27 13:17:37 2008 +0000

gnupg: disable eleet asm in mpi when compiling for thumb.

---

 packages/gnupg/gnupg-1.4.2.2/long-long-thumb.patch |   11 +++++++++++
 packages/gnupg/gnupg_1.4.2.2.bb                    |    3 ++-
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/packages/gnupg/gnupg-1.4.2.2/long-long-thumb.patch b/packages/gnupg/gnupg-1.4.2.2/long-long-thumb.patch
new file mode 100644
index 0000000..36e9992
--- /dev/null
+++ b/packages/gnupg/gnupg-1.4.2.2/long-long-thumb.patch
@@ -0,0 +1,11 @@
+--- gnupg/mpi/longlong.h~	2006-02-14 10:09:55.000000000 +0000
++++ gnupg/mpi/longlong.h	2008-10-27 13:11:09.000000000 +0000
+@@ -181,7 +181,7 @@
+ /***************************************
+  **************  ARM  ******************
+  ***************************************/
+-#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 %1, %4, %5\n"                                          \
+ 	   "adc  %0, %2, %3"                                            \
diff --git a/packages/gnupg/gnupg_1.4.2.2.bb b/packages/gnupg/gnupg_1.4.2.2.bb
index b21eb88..8492617 100644
--- a/packages/gnupg/gnupg_1.4.2.2.bb
+++ b/packages/gnupg/gnupg_1.4.2.2.bb
@@ -7,7 +7,8 @@ EXTRA_OECONF += "--with-readline=${STAGING_LIBDIR}/.."
 SRC_URI += "file://15_free_caps.patch;patch=1 \
 	    file://16_min_privileges.patch;patch=1 \
 	    file://22_zero_length_mpi_fix.patch;patch=1 \
-            file://30_nm_always_check.patch;patch=1"
+            file://30_nm_always_check.patch;patch=1 \
+            file://long-long-thumb.patch;patch=1"
 
 S = "${WORKDIR}/gnupg-${PV}"
 





More information about the Openembedded-commits mailing list