diff options
| author | Changqing Li <changqing.li@windriver.com> | 2020-03-11 16:42:05 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-03-11 08:58:57 -0700 |
| commit | d178745cbf5c97b7cdcf274108a58c8e1f88d3ca (patch) | |
| tree | ab1cf2f60e724eeecbfbf4a6c1973c4b5fee2c65 /meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb | |
| parent | f5d2bf55a8169a9446c2f96f327b3e5d91a6e6cc (diff) | |
| download | meta-openembedded-d178745cbf5c97b7cdcf274108a58c8e1f88d3ca.tar.gz | |
conf/layer.conf: add BBFILES_DYNAMIC and dynamic layers
some recipes under meta-oe have dependency on meta-python,
and test_world of yocto-check-layer will failed with error
like:
ERROR: test_world (common.CommonCheckLayer)
ERROR: Nothing PROVIDES 'python3-pytoml-native' (but
/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
DEPENDS on or otherwise requires it). Close matches:
python3-numpy-native
python3-pycairo-native
python3-rpm-native
ERROR: Required build target 'meta-world-pkgdata' has no buildable
providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
'mozjs', 'python3-pytoml-native']
fix by make these recipes only active when identified layers are
present
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb')
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb deleted file mode 100644 index 9466c62aac..0000000000 --- a/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb +++ /dev/null | |||
| @@ -1,135 +0,0 @@ | |||
| 1 | SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++" | ||
| 2 | HOMEPAGE = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" | ||
| 3 | LICENSE = "MPL-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf" | ||
| 5 | |||
| 6 | SRC_URI = " \ | ||
| 7 | https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \ | ||
| 8 | file://0001-Port-build-to-python3.patch \ | ||
| 9 | file://0002-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \ | ||
| 10 | file://0003-fix-cross-compilation-on-i586-targets.patch \ | ||
| 11 | file://0004-do-not-create-python-environment.patch \ | ||
| 12 | file://0005-fix-cannot-find-link.patch \ | ||
| 13 | file://0006-workaround-autoconf-2.13-detection-failed.patch \ | ||
| 14 | file://0007-fix-do_compile-failed-on-mips.patch \ | ||
| 15 | file://0008-add-riscv-support.patch \ | ||
| 16 | file://0009-mozjs-fix-coredump-caused-by-getenv.patch \ | ||
| 17 | file://0010-format-overflow.patch \ | ||
| 18 | file://0011-To-fix-build-error-on-arm32BE.patch \ | ||
| 19 | file://0012-JS_PUBLIC_API.patch \ | ||
| 20 | file://0013-riscv-Disable-atomic-operations.patch \ | ||
| 21 | file://0014-fallback-to-2011-C++-standard.patch \ | ||
| 22 | " | ||
| 23 | SRC_URI_append_libc-musl = " \ | ||
| 24 | file://musl/0001-support-musl.patch \ | ||
| 25 | file://musl/0002-js-Fix-build-with-musl.patch \ | ||
| 26 | " | ||
| 27 | SRC_URI_append_mipsarchn32 = " \ | ||
| 28 | file://mipsarchn32/0001-fix-compiling-failure-on-mips64-n32-bsp.patch \ | ||
| 29 | " | ||
| 30 | SRC_URI[md5sum] = "69a0be9ce695e5dc4941ed0c78ef00c2" | ||
| 31 | SRC_URI[sha256sum] = "9f453c8cc5669e46e38f977764d49a36295bf0d023619d9aac782e6bb3e8c53f" | ||
| 32 | |||
| 33 | S = "${WORKDIR}/firefox-${@d.getVar("PV").replace("esr", "")}" | ||
| 34 | |||
| 35 | inherit autotools pkgconfig perlnative python3native | ||
| 36 | |||
| 37 | inherit features_check | ||
| 38 | CONFLICT_DISTRO_FEATURES_mipsarchn32 = "ld-is-gold" | ||
| 39 | |||
| 40 | DEPENDS += " \ | ||
| 41 | nspr zlib autoconf-2.13-native \ | ||
| 42 | python3-six-native python3-pytoml-native \ | ||
| 43 | python3-jsmin-native python3-six \ | ||
| 44 | " | ||
| 45 | |||
| 46 | # Disable null pointer optimization in gcc >= 6 | ||
| 47 | # https://bugzilla.redhat.com/show_bug.cgi?id=1328045 | ||
| 48 | CFLAGS += "-fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks" | ||
| 49 | CXXFLAGS += "-fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks" | ||
| 50 | |||
| 51 | # nspr's package-config is ignored so set libs manually | ||
| 52 | EXTRA_OECONF = " \ | ||
| 53 | --target=${TARGET_SYS} \ | ||
| 54 | --host=${BUILD_SYS} \ | ||
| 55 | --prefix=${prefix} \ | ||
| 56 | --libdir=${libdir} \ | ||
| 57 | --disable-tests --disable-strip --disable-optimize \ | ||
| 58 | --disable-jemalloc \ | ||
| 59 | --with-nspr-cflags='-I${STAGING_INCDIR}/nspr -I${STAGING_INCDIR}/nss3' \ | ||
| 60 | --with-nspr-libs='-lplds4 -lplc4 -lnspr4' \ | ||
| 61 | ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', "--enable-gold", '--disable-gold', d)} \ | ||
| 62 | " | ||
| 63 | |||
| 64 | # Without this, JS_Init() will fail for mips64. | ||
| 65 | EXTRA_OECONF_append_mipsarch = " --with-intl-api=build" | ||
| 66 | EXTRA_OECONF_append_powerpc = " --with-intl-api=build" | ||
| 67 | |||
| 68 | EXTRA_OECONF_append_mipsarch = " --disable-ion" | ||
| 69 | EXTRA_OECONF_append_riscv64 = " --disable-ion" | ||
| 70 | EXTRA_OECONF_append_riscv32 = " --disable-ion" | ||
| 71 | |||
| 72 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | ||
| 73 | PACKAGECONFIG[x11] = "--x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--x-includes=no --x-libraries=no,virtual/libx11" | ||
| 74 | |||
| 75 | EXTRA_OEMAKE_task-compile += "BUILD_OPT=1 OS_LDFLAGS='-Wl,-latomic ${LDFLAGS}'" | ||
| 76 | EXTRA_OEMAKE_task-install += "STATIC_LIBRARY_NAME=js_static" | ||
| 77 | |||
| 78 | export HOST_CC = "${BUILD_CC}" | ||
| 79 | export HOST_CXX = "${BUILD_CXX}" | ||
| 80 | export HOST_CFLAGS = "${BUILD_CFLAGS}" | ||
| 81 | export HOST_CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
| 82 | export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}" | ||
| 83 | |||
| 84 | do_configure() { | ||
| 85 | export SHELL="/bin/sh" | ||
| 86 | cd ${S} | ||
| 87 | # Add mozjs python-modules necessary | ||
| 88 | PYTHONPATH="${S}/third_party/python/which:${S}/config:${S}/build" | ||
| 89 | for sub_dir in python testing/mozbase; do | ||
| 90 | for module_dir in `ls $sub_dir -1`;do | ||
| 91 | [ $module_dir = "virtualenv" ] && continue | ||
| 92 | if [ -d "${S}/$sub_dir/$module_dir" ];then | ||
| 93 | PYTHONPATH="$PYTHONPATH:${S}/$sub_dir/$module_dir" | ||
| 94 | fi | ||
| 95 | done | ||
| 96 | done | ||
| 97 | echo "$PYTHONPATH" > ${B}/PYTHONPATH | ||
| 98 | export PYTHONPATH=`cat ${B}/PYTHONPATH` | ||
| 99 | |||
| 100 | cd ${S}/js/src | ||
| 101 | autoconf213 --macrodir=${STAGING_DATADIR_NATIVE}/autoconf213 old-configure.in > old-configure | ||
| 102 | |||
| 103 | cd ${B} | ||
| 104 | ${S}/js/src/configure ${EXTRA_OECONF} | ||
| 105 | |||
| 106 | # Make standard Makefile checks pass | ||
| 107 | touch ${S}/js/src/configure | ||
| 108 | touch ${B}/config.status | ||
| 109 | } | ||
| 110 | |||
| 111 | do_compile_prepend() { | ||
| 112 | export SHELL="/bin/sh" | ||
| 113 | export PYTHONPATH=`cat ${B}/PYTHONPATH` | ||
| 114 | } | ||
| 115 | |||
| 116 | do_install_prepend() { | ||
| 117 | export SHELL="/bin/sh" | ||
| 118 | export PYTHONPATH=`cat ${B}/PYTHONPATH` | ||
| 119 | } | ||
| 120 | |||
| 121 | PACKAGES =+ "lib${BPN}" | ||
| 122 | FILES_lib${BPN} += "${libdir}/lib*.so" | ||
| 123 | FILES_${PN}-dev += "${bindir}/js60-config" | ||
| 124 | |||
| 125 | # Fails to build with thumb-1 (qemuarm) | ||
| 126 | #| {standard input}: Assembler messages: | ||
| 127 | #| {standard input}:2172: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov r2,r1,LSR#20' | ||
| 128 | #| {standard input}:2173: Error: unshifted register required -- `bic r2,r2,#(1<<11)' | ||
| 129 | #| {standard input}:2174: Error: unshifted register required -- `orr r1,r1,#(1<<20)' | ||
| 130 | #| {standard input}:2176: Error: instruction not supported in Thumb16 mode -- `subs r2,r2,#0x300' | ||
| 131 | #| {standard input}:2178: Error: instruction not supported in Thumb16 mode -- `subs r5,r2,#52' | ||
| 132 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||
| 133 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
| 134 | |||
| 135 | DISABLE_STATIC = "" | ||
