diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2021-02-09 16:53:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-12 23:32:11 +0000 |
commit | 92a9a86df9e3bcffb13d2f8b5dcbe7822170f734 (patch) | |
tree | 7595ae98e0f88dc72e54998fdcc67cebc785bbf8 | |
parent | 9571a18f7d15b3bffafc2e277ab90a21d6763697 (diff) | |
download | openembedded-core-contrib-92a9a86df9e3bcffb13d2f8b5dcbe7822170f734.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>
-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" |