Go to file
Martin Bark c72b8eaf21 package/nodejs: Fixes for node-pre-gyp
Many packages use node-pre-gyp as a way of deploying precompiled binary
dependencies with fall back to compilation for other targets.  Currently
installing node modules that use node-pre-gyp can fail to use the correct
binary for the target.  This patch fixes this issue by correctly
configuring node-pre-gyp.

Firstly, node-gyp uses the option --arch to determine its target
architecture (which is already set correctly), however, node-pre-gyp uses
--target-arch.  Without this set node.js packages that uses node-pre-gyp
will pick the wrong target architecture.

Secondly, the use of precompiled binary packages is not desirable due to
potential security and licensing issues.  To solve this we use the
--build-from-source option to force node-pre-gyp to always build the C++
code.

This patch passes npm_config_target_arch and npm_config_build_from_source
to npm which causes --target-arch and --build-from-source to be passed to
node-pre-gyp.

I have tested this using the node.js package serialport which now
successfully builds and runs.

Signed-off-by: Martin Bark <martin@barkynet.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-04 14:38:33 +02:00
arch arm: update processor types 2015-06-28 14:32:25 +02:00
board configs/olimex_a20_olinuxino_micro: new board 2015-07-02 11:00:13 +02:00
boot boot/at91bootstrap3: download via custom git url 2015-06-14 23:42:48 +02:00
configs configs/olimex_a20_olinuxino_micro: new board 2015-07-02 11:00:13 +02:00
docs scripts/mkusers: allow users with no password value set 2015-06-09 23:13:41 +02:00
fs fs/iso9660: add support for grub2 2015-06-14 23:25:18 +02:00
linux linux: bump default to version 4.1.1 2015-06-30 14:26:58 +02:00
package package/nodejs: Fixes for node-pre-gyp 2015-07-04 14:38:33 +02:00
support support: remove outdated note re. Python 3 support 2015-06-12 21:19:52 +02:00
system system: allow/disallow root login, accept encoded passwords 2015-07-04 12:46:43 +02:00
toolchain toolchain: allow for stupid toolchains 2015-06-28 14:32:40 +02:00
.defconfig arch: kill avr32 2015-02-14 17:39:50 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
CHANGES Update for 2015.05 2015-05-31 23:15:34 +02:00
Config.in Config.in: remove BR2_DEPRECATED_SINCE_2014_05 2015-06-02 22:58:29 +02:00
Config.in.legacy libsemanage: cleanup python use and license definition 2015-06-30 16:38:36 +02:00
COPYING clarify license and fix website license link 2009-05-08 09:29:41 +02:00
Makefile Makefile: Don't export VERBOSE unless V=1 (for CMake) 2015-06-25 00:48:55 +02:00
Makefile.legacy Makefile.legacy: fix recursive invocation with BUILDROOT_DL_DIR and _CONFIG 2014-02-11 08:14:57 +01:00
README README: mention 'make list-defconfigs' 2015-04-04 15:19:43 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.