diff options
-rw-r--r-- | meta/classes/npm.bbclass | 5 |
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 | |||
22 | DEPENDS:prepend = "nodejs-native " | 22 | DEPENDS:prepend = "nodejs-native " |
23 | RDEPENDS:${PN}:append:class-target = " nodejs" | 23 | RDEPENDS:${PN}:append:class-target = " nodejs" |
24 | 24 | ||
25 | EXTRA_OENPM = "" | ||
26 | |||
25 | NPM_INSTALL_DEV ?= "0" | 27 | NPM_INSTALL_DEV ?= "0" |
26 | 28 | ||
27 | def npm_target_arch_map(target_arch): | 29 | def 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 | ||
266 | npm_do_install() { | 269 | npm_do_install() { |