summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2021-02-09 16:53:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-04 17:39:10 +0000
commitc138bf05609c3e4fb39ce9791c8b40676eab8f3b (patch)
tree4046b35b833f27fa5d3b28cf67ddee3bc37b7579 /meta
parentba7b5aa3d65ba9a77554d678741715b2301f8624 (diff)
downloadpoky-c138bf05609c3e4fb39ce9791c8b40676eab8f3b.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/npm.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index f83c6e496e..bd01e247cd 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -20,7 +20,7 @@
20inherit python3native 20inherit python3native
21 21
22DEPENDS_prepend = "nodejs-native " 22DEPENDS_prepend = "nodejs-native "
23RDEPENDS_${PN}_prepend = "nodejs " 23RDEPENDS_${PN}_append_class-target = " nodejs"
24 24
25NPM_INSTALL_DEV ?= "0" 25NPM_INSTALL_DEV ?= "0"
26 26