File was renamed from 3rdparty/openssh/openssl/build.sh |
| | |
| | | |
| | | LYFTP_SRC=http://master.weike-iot.com:2211/src/ |
| | | |
| | | CROSSTOOL=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf- |
| | | CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf- |
| | | |
| | | function msg_banner() |
| | | { |
| | |
| | | function export_cross() |
| | | { |
| | | # export cross toolchain |
| | | export CC=${CROSSTOOL}gcc |
| | | export AS=${CROSSTOOL}as |
| | | export AR=${CROSSTOOL}ar |
| | | export LD=${CROSSTOOL}ld |
| | | export NM=${CROSSTOOL}nm |
| | | export RANLIB=${CROSSTOOL}ranlib |
| | | export OBJDUMP=${CROSSTOOL}objdump |
| | | export STRIP=${CROSSTOOL}strip |
| | | export CC=${CROSS_COMPILE}gcc |
| | | export AS=${CROSS_COMPILE}as |
| | | export AR=${CROSS_COMPILE}ar |
| | | export LD=${CROSS_COMPILE}ld |
| | | export NM=${CROSS_COMPILE}nm |
| | | export RANLIB=${CROSS_COMPILE}ranlib |
| | | export OBJDUMP=${CROSS_COMPILE}objdump |
| | | export STRIP=${CROSS_COMPILE}strip |
| | | |
| | | # export cross configure |
| | | export CONFIG_CROSS=" --build=i686-pc-linux --host=arm-linux " |
| | |
| | | tar -xzf ${SRC_NAME}.${PACK_SUFIX} |
| | | cd ${SRC_NAME} |
| | | |
| | | CROSS_COMPILE=${CROSSTOOL} ./Configure threads -shared -no-zlib --prefix=$PREFIX_PATH --openssldir=$PREFIX_PATH linux-armv4 |
| | | CROSS_COMPILE=${CROSS_COMPILE} ./Configure threads -shared -no-zlib --prefix=$PREFIX_PATH --openssldir=$PREFIX_PATH linux-armv4 |
| | | |
| | | make && make install |
| | | check_result "ERROR: compile ${SRC_NAME} failure" |