summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen.kooi@linaro.org>2015-03-03 20:47:55 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-03-06 07:34:07 +0100
commit2a3ffe806afc5d23fc5a8086dee74d32afb5e66b (patch)
tree06e0e96e8d445a164a9853df2ac5e7afeefb490c /meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
parent5fffea1646b7a3db5c4a35b9b5fcc0ddadb63496 (diff)
downloadmeta-openembedded-2a3ffe806afc5d23fc5a8086dee74d32afb5e66b.tar.gz
mozjs 17.0.0: fix aarch64 and 64k page builds, generic cleanups
* Mozjs17 has problems with 64k page sizes (powerpc64, aarch64 and probably others) and lacks support for aarch64. Patches were lifted from the fedora src rpm and rediffed. * Regenerate configure with autoconf-2.13 to make the fixes mentioned above take effect. * Provide proper config.guess and config.sub files * Explicitly disable static builds and regroup configure options. * Also clean out the patches/ dir present in the tarball to avoid conflicts with the OE patcher. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb29
1 files changed, 26 insertions, 3 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
index 174f6fe0a8..91ee9a27a5 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
@@ -4,9 +4,15 @@ LIC_FILES_CHKSUM = "file://../../LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
4 4
5SRC_URI = " \ 5SRC_URI = " \
6 http://ftp.mozilla.org/pub/mozilla.org/js/${BPN}${PV}.tar.gz \ 6 http://ftp.mozilla.org/pub/mozilla.org/js/${BPN}${PV}.tar.gz \
7 file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \
8 file://0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch \ 7 file://0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch \
9" 8 file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \
9 file://0002-Move-JS_BYTES_PER_WORD-out-of-config.h.patch;patchdir=../../ \
10 file://0003-Add-AArch64-support.patch;patchdir=../../ \
11 file://0004-mozbug746112-no-decommit-on-large-pages.patch;patchdir=../../ \
12 file://0005-aarch64-64k-page.patch;patchdir=../../ \
13 file://0001-regenerate-configure.patch;patchdir=../../ \
14 "
15
10SRC_URI[md5sum] = "20b6f8f1140ef6e47daa3b16965c9202" 16SRC_URI[md5sum] = "20b6f8f1140ef6e47daa3b16965c9202"
11SRC_URI[sha256sum] = "321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba" 17SRC_URI[sha256sum] = "321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba"
12 18
@@ -22,16 +28,33 @@ EXTRA_OECONF = " \
22 --host=${BUILD_SYS} \ 28 --host=${BUILD_SYS} \
23 --build=${BUILD_SYS} \ 29 --build=${BUILD_SYS} \
24 --prefix=${prefix} \ 30 --prefix=${prefix} \
31 --libdir=${libdir} \
25 --with-nspr-libs='-lplds4 -lplc4 -lnspr4' \ 32 --with-nspr-libs='-lplds4 -lplc4 -lnspr4' \
26 --enable-threadsafe \ 33 --enable-threadsafe \
27 --libdir=${libdir} \ 34 --disable-static \
28" 35"
29 36
30# mozjs requires autoreconf 2.13 37# mozjs requires autoreconf 2.13
31do_configure() { 38do_configure() {
39 ( cd ${S}
40 gnu-configize --force
41 mv config.guess config.sub build/autoconf )
32 ${S}/configure ${EXTRA_OECONF} 42 ${S}/configure ${EXTRA_OECONF}
33} 43}
34 44
45# patch.bbclass will try to apply the patches already present and fail, so clean them out
46do_sourceclean() {
47 (
48 cd ${WORKDIR}/${PN}${PV}/patches
49 for i in $(cat series | awk '{print $1}') ; do
50 rm -f $i
51 done
52 rm -f series
53 )
54}
55
56addtask sourceclean before do_patch after do_unpack
57
35PACKAGES =+ "lib${PN}" 58PACKAGES =+ "lib${PN}"
36FILES_lib${PN} += "${libdir}/lib*.so" 59FILES_lib${PN} += "${libdir}/lib*.so"
37FILES_${PN}-dev += "${bindir}/js17-config" 60FILES_${PN}-dev += "${bindir}/js17-config"