]> code.ossystems Code Review - openembedded-core.git/commitdiff
npm.bbclass: allow overriding NPM_INSTALL_DEV
authorJef Driesen <jef.driesen@niko.eu>
Tue, 23 Oct 2018 11:43:24 +0000 (13:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Oct 2018 13:36:34 +0000 (14:36 +0100)
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 <jef.driesen@niko.eu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/npm.bbclass

index 30febcffb2a59f29a8eb61b7e92f5ab73402f980..6dbae6bc79cd5550c08975eb02fa60c49e27fc0e 100644 (file)
@@ -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