mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
nodejs: Build only when meta-py2 is included
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -113,13 +113,14 @@ RDEPENDS_packagegroup-meta-oe-devtools ="\
|
|||||||
giflib icon-slicer iptraf-ng jq jsoncpp jsonrpc json-spirit \
|
giflib icon-slicer iptraf-ng jq jsoncpp jsonrpc json-spirit \
|
||||||
kconfig-frontends lemon libedit libgee libsombok3 \
|
kconfig-frontends lemon libedit libgee libsombok3 \
|
||||||
libubox log4cplus lshw ltrace lua mcpp memstat mercurial \
|
libubox log4cplus lshw ltrace lua mcpp memstat mercurial \
|
||||||
mpich msgpack-c nlohmann-json nodejs openocd pax-utils \
|
mpich msgpack-c nlohmann-json openocd pax-utils \
|
||||||
ipc-run libdbd-mysql-perl libdbi-perl libio-pty-perl php \
|
ipc-run libdbd-mysql-perl libdbi-perl libio-pty-perl php \
|
||||||
protobuf protobuf-c python3-distutils-extra \
|
protobuf protobuf-c python3-distutils-extra \
|
||||||
python-cpuset python-distutils-extra python-futures python-pygobject \
|
python-cpuset python-distutils-extra python-futures python-pygobject \
|
||||||
rapidjson serialcheck sip3 sip tclap uftrace uw-imap valijson \
|
rapidjson serialcheck sip3 sip tclap uftrace uw-imap valijson \
|
||||||
xmlrpc-c yajl yasm \
|
xmlrpc-c yajl yasm \
|
||||||
${@bb.utils.contains("DISTRO_FEATURES", "x11", "geany geany-plugins glade tk", "", d)} \
|
${@bb.utils.contains("DISTRO_FEATURES", "x11", "geany geany-plugins glade tk", "", d)} \
|
||||||
|
${@bb.utils.contains("BBPATH", "meta-python2", "nodejs", "", d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS_packagegroup-meta-oe-devtools_remove_armv5 = "uftrace nodejs"
|
RDEPENDS_packagegroup-meta-oe-devtools_remove_armv5 = "uftrace nodejs"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=be980eb7ccafe287cb438076a65e888c"
|
|||||||
DEPENDS = "openssl"
|
DEPENDS = "openssl"
|
||||||
DEPENDS_append_class-target = " nodejs-native"
|
DEPENDS_append_class-target = " nodejs-native"
|
||||||
|
|
||||||
inherit pkgconfig python3native
|
inherit pkgconfig pythonnative
|
||||||
|
|
||||||
COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
|
COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
|
||||||
COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"
|
COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"
|
||||||
@@ -148,3 +148,8 @@ FILES_${PN}-systemtap = "${datadir}/systemtap"
|
|||||||
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
|
python() {
|
||||||
|
if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
|
||||||
|
raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user