[OE-core] [Morty][Patch] gmp: Disable assembly for MIPS R6

Zubair Lutfullah Kakakhel Zubair.Kakakhel at imgtec.com
Fri Dec 9 15:00:16 UTC 2016


gmplib has some assembly routines. These have not been optimized
for MIPS R6 yet. Add --disable-assembly so that the C implementation
is used.

(From OE-Core rev: b0975809fe43b7506cc30a60245f5e32b275a3ec)

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel at imgtec.com>

---
Not exact backport as Pyro has support for some MACHINEOVERRIDES that
are used instead.
---
 meta/recipes-support/gmp/gmp_6.1.1.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/gmp/gmp_6.1.1.bb b/meta/recipes-support/gmp/gmp_6.1.1.bb
index 303c3ef..c89773a 100644
--- a/meta/recipes-support/gmp/gmp_6.1.1.bb
+++ b/meta/recipes-support/gmp/gmp_6.1.1.bb
@@ -20,7 +20,14 @@ SRC_URI[sha256sum] = "a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95b
 
 acpaths = ""
 
-EXTRA_OECONF += " --enable-cxx=detect"
+DISABLE_ASSEMBLY ?= ""
+
+DISABLE_ASSEMBLY_mipsisa32r6 = "--disable-assembly"
+DISABLE_ASSEMBLY_mipsisa32r6el = "--disable-assembly"
+DISABLE_ASSEMBLY_mipsisa64r6 = "--disable-assembly"
+DISABLE_ASSEMBLY_mipsisa64r6el = "--disable-assembly"
+
+EXTRA_OECONF += " --enable-cxx=detect ${DISABLE_ASSEMBLY}"
 
 PACKAGES =+ "libgmpxx"
 FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
-- 
2.10.2




More information about the Openembedded-core mailing list