]> code.ossystems Code Review - openembedded-core.git/commit
npm.bbclass: avoid building target nodejs for native npm recipes
authorYoann Congal <yoann.congal@smile.fr>
Tue, 9 Feb 2021 15:53:46 +0000 (16:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Feb 2021 23:32:11 +0000 (23:32 +0000)
commit92a9a86df9e3bcffb13d2f8b5dcbe7822170f734
tree7595ae98e0f88dc72e54998fdcc67cebc785bbf8
parent9571a18f7d15b3bffafc2e277ab90a21d6763697
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>
meta/classes/npm.bbclass