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
반응형
'General CS > Linux' 카테고리의 다른 글
Linux - Raspberry PI라면 Raspbian을 쓰자. (0) | 2021.07.10 |
---|---|
[Project - Bootstrap] Raspberry PI Zero에 NodeJS설치 (0) | 2021.07.08 |
Linux - 그룹이름과 사용자이름 바꾸기, hostname 바꾸기! (0) | 2021.07.07 |
[Project - Bootstrap] Linux 세팅 - 시작하기 (0) | 2021.07.07 |