Skip to content

Instantly share code, notes, and snippets.

View taoyuan's full-sized avatar
:octocat:
I may be slow to respond.

TY taoyuan

:octocat:
I may be slow to respond.
View GitHub Profile
@taoyuan
taoyuan / nodejs.sh
Created February 24, 2016 15:07 — forked from Gioyik/nodejs.sh
Script to cross compile NodeJS for ARMv7
#!/bin/sh -e
#Define our target device
export TARGET_ARCH="-march=armv7-a"
export TARGET_TUNE="-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb"
#Define the cross compilators on your system
export AR="arm-linux-gnueabi-ar"
export CC="arm-linux-gnueabi-gcc"
export CXX="arm-linux-gnueabi-g++"
$ cd ~/Downloads/redis-2.4.14
$ make test
$ make