]> 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>
Wed, 10 Mar 2021 00:24:17 +0000 (00:24 +0000)
commitcb7eb2d449a2eb72bbef7b30cf7431f0483f0d83
treea38936a75f42e738f7c32214b350377a69537ccc
parent4131e1bc7188c5e88b06bcde1efc4de3c2d06c85
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>
meta/classes/npm.bbclass