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
@@ -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.')
}