From: Jef Driesen Date: Tue, 23 Oct 2018 11:43:24 +0000 (+0200) Subject: npm.bbclass: allow overriding NPM_INSTALL_DEV X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~16338 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b53d5094d5e05f9c1955c8565d777ad74f668f7e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git npm.bbclass: allow overriding NPM_INSTALL_DEV Commit b1f10b18eaf6c8009e86863ca4a26f429de97082 added the NPM_INSTALL_DEV variable. But due to the use of simple assignment, a recipe can't override its value. Signed-off-by: Jef Driesen Signed-off-by: Richard Purdie --- diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index 30febcffb2a..6dbae6bc79c 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass @@ -22,7 +22,7 @@ def npm_oe_arch_map(target_arch, d): return target_arch NPM_ARCH ?= "${@npm_oe_arch_map(d.getVar('TARGET_ARCH'), d)}" -NPM_INSTALL_DEV = "0" +NPM_INSTALL_DEV ?= "0" npm_do_compile() { # Copy in any additionally fetched modules