본문 바로가기
General CS/Linux

Linux - NodeJS for ARMv6(armel) Cross Compile settings

by 리나그(ReenAG) 2021. 7. 14.
728x90
반응형

Document of how i compiled NodeJS for RPI kali linux (Not built yet, still experimenting.)

 

Using Guest Os : debian - amd64 minimal

Target OS : kali linux - armv6(armel)

Using comailer = arm-linux-gnueabi

 

-These commands will install buster compilers.

su root
apt-get update -y && apt-get upgrade -y
apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi build-essential

after this, gcc for armel will be installed as version 8.3.0.

 

-These commands will setup environment variables

export USE_GCC=/usr/bin/arm-linux-gnueabi ;
export CC="${USE_GCC}-gcc" ;
export CXX="${USE_GCC}-g++" ;
export AR="${USE_GCC}-ar" ;
export RANLIB="${USE_GCC}-ranlib" ;
export LINK="${CXX}" ;
export CCFLAGS="-march=armv6 -mtune=cortex-a7 -mfpu=vfpv2 -mfloat-abi=softfp" ;
export CXXFLAGS="-march=armv6 -mtune=cortex-a7 -mfpu=vfpv2 -mfloat-abi=softfp" ;
export OPENSSL_armcap=6 ;
export GYPFLAGS="-Darmeabi=soft -Dv8_use_arm_eabi_hardfloat=false -Dv8_can_use_vfp3_instructions=false -Dv8_can_use_vfp2_instructions=true -Darm6=1" ;
export VFP3=off ;
export VFP2=on ;
export PREFIX_DIR=/usr/arm-linux-gnueabi

-Configure command

./configure --without-snapshot --without-ssl --dest-cpu=arm --dest-os=linux --with-arm-float-abi=softfp --prefix="${PREFIX_DIR}"

 

728x90
반응형