summaryrefslogtreecommitdiffstats
path: root/meta/classes/npm.bbclass
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-10 00:24:25 +0000
commitaadac9ddbfadeda2e8aac3eb9b88b113b5aff02e (patch)
treedc1a8010e1f0d3569d60ca9a2d6ed2a215c027ba /meta/classes/npm.bbclass
parent4e4523aae48771db83e4b9e3296bff8e16eb082e (diff)
downloadpoky-aadac9ddbfadeda2e8aac3eb9b88b113b5aff02e.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: cb7eb2d449a2eb72bbef7b30cf7431f0483f0d83) 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: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/npm.bbclass')
-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 79f55febcc..55a6985fb0 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