mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
npm.bbclass: avoid building target nodejs for native npm recipes
The current recipe unconditionally RDEPENDS on nodejs (the target one). When building on the "-native recipe" of "BBCLASSEXTEND native" recipe, the target nodejs is unnecessarily built. This patch fixes this by only RDEPENDS on nodejs when building for the target. (From OE-Core rev: 3720c39524df866b570540310edaac973cdad7fb) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 92a9a86df9e3bcffb13d2f8b5dcbe7822170f734) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ba7b5aa3d6
commit
c138bf0560
@@ -20,7 +20,7 @@
|
||||
inherit python3native
|
||||
|
||||
DEPENDS_prepend = "nodejs-native "
|
||||
RDEPENDS_${PN}_prepend = "nodejs "
|
||||
RDEPENDS_${PN}_append_class-target = " nodejs"
|
||||
|
||||
NPM_INSTALL_DEV ?= "0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user