Last active
May 1, 2017 20:11
-
-
Save apgiorgi/8867558 to your computer and use it in GitHub Desktop.
Building and upgrading Node.js on Beaglebone Black with VFPv3 and NEON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
http://fastr.github.io/articles/Node.js-on-OpenEmbedded.html | |
http://processors.wiki.ti.com/index.php/Cortex-A8 | |
Flags: | |
"-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp" | |
So, in a nutshell: | |
$ wget http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz | |
$ tar -zxf node-v0.10.25.tar.gz | |
$ cd node-v0.10.25 | |
$ export CC='gcc -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp' | |
$ export CXX='g++ -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp' | |
$ ./configure && make && sudo make install | |
Then remove old node and link new one: | |
$ rm /usr/bin/node /usr/bin/node-waf | |
$ ln -s /usr/local/bin/node /usr/bin/node | |
OR(absolutely unsafe): | |
$ export PATH=/usr/local/bin:$PATH | |
Check with: | |
$ node -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably this works on any source build.