summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/npm.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index 91a2321116..477b40d921 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -22,6 +22,8 @@ inherit python3native
22DEPENDS:prepend = "nodejs-native " 22DEPENDS:prepend = "nodejs-native "
23RDEPENDS:${PN}:append:class-target = " nodejs" 23RDEPENDS:${PN}:append:class-target = " nodejs"
24 24
25EXTRA_OENPM = ""
26
25NPM_INSTALL_DEV ?= "0" 27NPM_INSTALL_DEV ?= "0"
26 28
27def npm_target_arch_map(target_arch): 29def npm_target_arch_map(target_arch):
@@ -260,7 +262,8 @@ python npm_do_compile() {
260 262
261 # Pack and install the main package 263 # Pack and install the main package
262 tarball = npm_pack(env, d.getVar("NPM_PACKAGE"), tmpdir) 264 tarball = npm_pack(env, d.getVar("NPM_PACKAGE"), tmpdir)
263 env.run("npm install %s" % shlex.quote(tarball), args=args, configs=configs) 265 cmd = "npm install %s %s" % (shlex.quote(tarball), d.getVar("EXTRA_OENPM"))
266 env.run(cmd, args=args, configs=configs)
264} 267}
265 268
266npm_do_install() { 269npm_do_install() {