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:17 +0000 |
commit | cb7eb2d449a2eb72bbef7b30cf7431f0483f0d83 (patch) | |
tree | a38936a75f42e738f7c32214b350377a69537ccc | |
parent | 4131e1bc7188c5e88b06bcde1efc4de3c2d06c85 (diff) | |
download | openembedded-core-contrib-cb7eb2d449a2eb72bbef7b30cf7431f0483f0d83.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.
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>
-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 @@ inherit python3native DEPENDS_prepend = "nodejs-native " -RDEPENDS_${PN}_prepend = "nodejs " +RDEPENDS_${PN}_append_class-target = " nodejs" NPM_INSTALL_DEV ?= "0" |