HOMEPATH="/home/username/openwrt/trunk"
#These depend on your arch. Look it up on your build folder.
ARCH="mips-openwrt-linux-uclibc"
TARCH="mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2"
export AR=${HOMEPATH}/staging_dir/toolchain-${TARCH}/bin/${ARCH}-ar
export CC=${HOMEPATH}/staging_dir/toolchain-${TARCH}/bin/${ARCH}-gcc
export CXX=${HOMEPATH}/staging_dir/toolchain-${TARCH}/bin/${ARCH}-g++
export LINK=${HOMEPATH}/staging_dir/toolchain-${TARCH}/bin/${ARCH}-g++
export RANLIB=${HOMEPATH}/staging_dir/toolchain-${TARCH}/bin/${ARCH}-ranlib
export STAGING_DIR=${HOMEPATH}/staging_dir
export LIBPATH=${HOMEPATH}/staging_dir/toolchain-${TARCH}/lib
export LDFLAGS='-Wl,-rpath-link '${LIBPATH}
homepath I point at my SDK dir or source dir though neither the SDK or source have a folder called trunk
I am a little lost what to put for ARCH & TARCH
I have no clue what you use for ARCH -- ????
I think TARCH = arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi
lastly where does one place these global variables
It says to cd into Node folder and add these global variable but it does not say what or where it should be added too..
would anyone be kind enough to help me out with this
yes I looked through the forum thread already all say roughly the same- https://openwrt.org/docs/guide-developer/build-system/start
I look through that i can not find mention how to compile NodeJs to a higher version then 8.10 (your current default) I need atleast nodejs 8.11 to a maximum 10.15.1 ..
of all the searching that gave some information how to do it is the above mention webpage that is relatively current to the the base os
I have a working cross compiler for openwrt from source... but I can not see how to tell it how to compile stable node 9.9.8 or lts 10.15.1 version of node.. can you atleast give some hint how to do that .
thank you kindly for the reply jeff -- I tried your method actually a few times now. the first time it did not compile until I deleted patch 4.. as it was editing the cypto.cc to be the same. after that it compiled fine . but seams something is wrong with npm it compile but crashes on the openwrt device.. i will look into that more ( it complains --Cannot convert name to ASCII--- Error: npm.load() required - google say ICU issue )
but first i will try diizzy suggested method currently it is compiling currently from a fresh openwrt build so that will be a while before I can see the results
Thank you kindly diizzzy provided link worked perfectly..
here a basic how to if someone else need to upgrade Nodejs
git clone https://git.openwrt.org/openwrt/openwrt.git/
cd openwrt
git fetch --tags ( choose version you wish to use oe v18.06.1 the current)
git checkout v18.06.1
./scripts/feeds update -a
./scripts/feeds install -a
Thanks for the guide. I am trying this to get node 10 to my RPi, but when closing make menuconfig I get:
"WARNING: Makefile 'package/feeds/node/node/Makefile' has a dependency on 'icu-full-data', which does not exist"
I neither can install it with apt nor find it in menuconfig menus. What should I do?