Skip to content

Instantly share code, notes, and snippets.

@TooTallNate
Last active December 10, 2015 23:08
Show Gist options
  • Save TooTallNate/4507090 to your computer and use it in GitHub Desktop.
Save TooTallNate/4507090 to your computer and use it in GitHub Desktop.
Command to cross-compile a "binary tarball" node release for Raspberry Pi. They're now getting uploaded to the release dist/ dir on nodejs.org/dist i.e: http://nodejs.org/dist/v0.8.17/
#!/usr/bin/env sh
export AR=arm-unknown-linux-gnueabi-ar
export CC=arm-unknown-linux-gnueabi-gcc
export CXX=arm-unknown-linux-gnueabi-g++
export LINK="$CXX"
export CFLAGS="-march=armv6j -mfpu=vfp -mfloat-abi=hard"
export CXXFLAGS="$CFLAGS"
make binary BINARYNAME=node-v`python tools/getnodeversion.py`-linux-arm-pi DESTCPU=arm CONFIG_FLAGS="--dest-os=linux"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment