diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2021-02-09 16:53:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-10 00:24:25 +0000 |
commit | aadac9ddbfadeda2e8aac3eb9b88b113b5aff02e (patch) | |
tree | dc1a8010e1f0d3569d60ca9a2d6ed2a215c027ba /meta | |
parent | 4e4523aae48771db83e4b9e3296bff8e16eb082e (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/npm.bbclass | 2 |
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 @@ | |||
20 | inherit python3native | 20 | inherit python3native |
21 | 21 | ||
22 | DEPENDS_prepend = "nodejs-native " | 22 | DEPENDS_prepend = "nodejs-native " |
23 | RDEPENDS_${PN}_prepend = "nodejs " | 23 | RDEPENDS_${PN}_append_class-target = " nodejs" |
24 | 24 | ||
25 | NPM_INSTALL_DEV ?= "0" | 25 | NPM_INSTALL_DEV ?= "0" |
26 | 26 | ||