openwrt 官网介绍node.js
http://wiki.openwrt.org/nodejs
cd trunk/package
git clone https://github.com/brimstone/nodejs-openwrt.git
mv nodejs-openwrt node
要修改Makefile
21 LIBS:=-I$(TOOLCHAIN_DIR)/mipsel-openwrt-linux-uclibc/include/c++/4.6.4/ \
22 -I$(TOOLCHAIN_DIR)/mipsel-openwrt-linux-uclibc/include/c++/4.6.4/mips-openwrt-linux-uclibc/ \
23 -I/usr/include/c++/4.6/x86_64-linux-gnu/
建立超链接asm目录
usr/include$ ll asm
asm -> /usr/src/linux-headers-3.13.0-32/arch/mips/include/asm/
make menuconfig ----> Languages ---> < > node
[*] Advanced configuration options (for developers) --->[*] Toolchain Options (NEW) --->GCC compiler Version (gcc 4.6.x with Linaro enhancements)
make package/node/compile V=s
时间比较久,我的编译完成时间 5m23s