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:16 +0000 |
| commit | f13c22358a91f2792062d04182f06f215a3cf03b (patch) | |
| tree | 85afa804779a52536217206718daf49b00f7687c | |
| parent | fa7db243672ec7d8e1a1f45341ceadb0bc212794 (diff) | |
| download | poky-f13c22358a91f2792062d04182f06f215a3cf03b.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: 92a9a86df9e3bcffb13d2f8b5dcbe7822170f734)
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 @@ | |||
| 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 | ||
