nodejs: Build only when meta-py2 is included

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2020-01-21 22:28:33 -08:00
parent 2b67b882ee
commit 0a4faceed6
2 changed files with 8 additions and 2 deletions

View File

@ -113,13 +113,14 @@ RDEPENDS_packagegroup-meta-oe-devtools ="\
giflib icon-slicer iptraf-ng jq jsoncpp jsonrpc json-spirit \
kconfig-frontends lemon libedit libgee libsombok3 \
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 \
protobuf protobuf-c python3-distutils-extra \
python-cpuset python-distutils-extra python-futures python-pygobject \
rapidjson serialcheck sip3 sip tclap uftrace uw-imap valijson \
xmlrpc-c yajl yasm \
${@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"

View File

@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=be980eb7ccafe287cb438076a65e888c"
DEPENDS = "openssl"
DEPENDS_append_class-target = " nodejs-native"
inherit pkgconfig python3native
inherit pkgconfig pythonnative
COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"
@ -148,3 +148,8 @@ FILES_${PN}-systemtap = "${datadir}/systemtap"
BBCLASSEXTEND = "native"
python() {
if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
}