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 <[email protected]> --- 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 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
