[OE-core] [PATCH v3 12/17] npm.bbclass: use the local node headers
Jean-Marie LEMETAYER
jean-marie.lemetayer at savoirfairelinux.com
Wed Nov 20 09:33:53 UTC 2019
When building addons, the node headers are needed to be able to compile
properly. Usually they are downloaded by npm but network access in the
do_compile task are unauthorized. Hopefully the local node headers are
available in the native sysroot so lets use them.
Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer at savoirfairelinux.com>
---
meta/classes/npm.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index b13dca7eb8..63b1d9f624 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -121,6 +121,7 @@ npm_do_compile() {
local NPM_INSTALL_GYP_ARGS="${NPM_INSTALL_GYP_ARGS} --arch=${NPM_ARCH}"
local NPM_INSTALL_GYP_ARGS="${NPM_INSTALL_GYP_ARGS} --target_arch=${NPM_ARCH}"
local NPM_INSTALL_GYP_ARGS="${NPM_INSTALL_GYP_ARGS} --release"
+ local NPM_INSTALL_GYP_ARGS="${NPM_INSTALL_GYP_ARGS} --nodedir=${RECIPE_SYSROOT_NATIVE}${prefix_native}"
cd ${WORKDIR} && npm install ${NPM_PACK_FILE} \
${NPM_INSTALL_GYP_ARGS} \
--
2.20.1
More information about the Openembedded-core
mailing list