mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40: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:
@@ -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.')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user