From a41651b62ff13fd89aafefd5c1e0ef7a6e5b31ad Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Thu, 22 Aug 2024 18:03:49 +0800 Subject: [PATCH] rename 3rdparty to openlibs and rename CROSSTOOL to CROSS_COMPILER --- openlibs/libressl/build.sh | 18 openlibs/dropbear/S20_dropbear | 0 openlibs/busybox/config/busybox-1.31.0.config | 0 openlibs/qt/tslib/build.sh | 18 openlibs/iptables/build.sh | 18 openlibs/openssh/openssl/build.sh | 20 openlibs/libkcapi/build.sh | 18 openlibs/opencv/build.sh | 4 openlibs/openssh/zlib/build.sh | 18 openlibs/mplayer/build.sh | 20 openlibs/file/build.sh | 18 openlibs/appweb/web/assets/bootstrap.min.js | 0 openlibs/gstreamer/build.sh | 18 openlibs/appweb/web/assets/highcharts.js | 0 openlibs/appweb/web/device.php | 0 openlibs/iconv/build.sh | 18 openlibs/ethtool/build.sh | 18 openlibs/appweb/web/assets/dashboard.js | 0 openlibs/glib/build.sh | 18 openlibs/curl/build.sh | 18 openlibs/openssh/build.sh | 18 openlibs/appweb/web/assets/bootstrap.min.css | 0 openlibs/zbar/build.sh | 20 openlibs/sqlite/build.sh | 18 openlibs/appweb/web/assets/solid-gauge.js | 0 openlibs/appweb/web/assets/highcharts-more.js | 0 openlibs/dosfstools/build.sh | 18 openlibs/appweb/build.sh | 18 openlibs/e2fsprogs/build.sh | 18 openlibs/libgpiod/build.sh | 0 openlibs/libpng/build.sh | 18 openlibs/qt/build_QT5.sh | 8 openlibs/openssl/build.sh | 20 openlibs/pppd/patch/ppp-2.4.7.patch | 0 openlibs/ntpdate/build.sh | 18 openlibs/libxml2/build.sh | 0 openlibs/zlib/build.sh | 18 openlibs/alsa/build.sh | 18 openlibs/dnsmasq/build.sh | 18 openlibs/valgrind/build.sh | 20 openlibs/appweb/web/assets/devices/raspberry-pi.png | 0 openlibs/stunnel/build.sh | 20 openlibs/util-linux/build.sh | 18 openlibs/appweb/web/assets/exporting.js | 0 openlibs/cJSON/build.sh | 22 openlibs/dropbear/build.sh | 18 openlibs/imageMagick/build.sh | 18 openlibs/vsftpd/build.sh | 22 openlibs/build.sh | 0 openlibs/dhcpd/build.sh | 18 openlibs/mosquitto/build.sh | 20 openlibs/appweb/web/index.php | 0 openlibs/tree/build.sh | 20 openlibs/lrzsz/build.sh | 18 openlibs/fbgrab/build.sh | 18 openlibs/appweb/web/assets/jquery-3.1.1.min.js | 0 openlibs/openssl/cryptodev-linux/crypto/cryptodev.h | 0 openlibs/busybox/build.sh | 4 openlibs/pppd/build.sh | 28 +- openlibs/ffmpeg/build.sh | 20 openlibs/libconfig/build.sh | 20 openlibs/appweb/web/assets/dashboard.min.js | 0 openlibs/libdrm/build.sh | 18 openlibs/libevent/build.sh | 20 64 files changed, 406 insertions(+), 406 deletions(-) diff --git a/3rdparty/alsa/build.sh b/openlibs/alsa/build.sh similarity index 89% rename from 3rdparty/alsa/build.sh rename to openlibs/alsa/build.sh index 324dbd1..69a6d19 100755 --- a/3rdparty/alsa/build.sh +++ b/openlibs/alsa/build.sh @@ -12,7 +12,7 @@ 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() { @@ -38,14 +38,14 @@ 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 " diff --git a/3rdparty/appweb/build.sh b/openlibs/appweb/build.sh similarity index 93% rename from 3rdparty/appweb/build.sh rename to openlibs/appweb/build.sh index 86bbd56..75d6570 100755 --- a/3rdparty/appweb/build.sh +++ b/openlibs/appweb/build.sh @@ -16,7 +16,7 @@ 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- TARBALL=appweb_cortexa5.tar.bz2 @@ -44,14 +44,14 @@ 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 " diff --git a/3rdparty/appweb/web/assets/bootstrap.min.css b/openlibs/appweb/web/assets/bootstrap.min.css similarity index 100% rename from 3rdparty/appweb/web/assets/bootstrap.min.css rename to openlibs/appweb/web/assets/bootstrap.min.css diff --git a/3rdparty/appweb/web/assets/bootstrap.min.js b/openlibs/appweb/web/assets/bootstrap.min.js similarity index 100% rename from 3rdparty/appweb/web/assets/bootstrap.min.js rename to openlibs/appweb/web/assets/bootstrap.min.js diff --git a/3rdparty/appweb/web/assets/dashboard.js b/openlibs/appweb/web/assets/dashboard.js similarity index 100% rename from 3rdparty/appweb/web/assets/dashboard.js rename to openlibs/appweb/web/assets/dashboard.js diff --git a/3rdparty/appweb/web/assets/dashboard.min.js b/openlibs/appweb/web/assets/dashboard.min.js similarity index 100% rename from 3rdparty/appweb/web/assets/dashboard.min.js rename to openlibs/appweb/web/assets/dashboard.min.js diff --git a/3rdparty/appweb/web/assets/devices/raspberry-pi.png b/openlibs/appweb/web/assets/devices/raspberry-pi.png similarity index 100% rename from 3rdparty/appweb/web/assets/devices/raspberry-pi.png rename to openlibs/appweb/web/assets/devices/raspberry-pi.png Binary files differ diff --git a/3rdparty/appweb/web/assets/exporting.js b/openlibs/appweb/web/assets/exporting.js similarity index 100% rename from 3rdparty/appweb/web/assets/exporting.js rename to openlibs/appweb/web/assets/exporting.js diff --git a/3rdparty/appweb/web/assets/highcharts-more.js b/openlibs/appweb/web/assets/highcharts-more.js similarity index 100% rename from 3rdparty/appweb/web/assets/highcharts-more.js rename to openlibs/appweb/web/assets/highcharts-more.js diff --git a/3rdparty/appweb/web/assets/highcharts.js b/openlibs/appweb/web/assets/highcharts.js similarity index 100% rename from 3rdparty/appweb/web/assets/highcharts.js rename to openlibs/appweb/web/assets/highcharts.js diff --git a/3rdparty/appweb/web/assets/jquery-3.1.1.min.js b/openlibs/appweb/web/assets/jquery-3.1.1.min.js similarity index 100% rename from 3rdparty/appweb/web/assets/jquery-3.1.1.min.js rename to openlibs/appweb/web/assets/jquery-3.1.1.min.js diff --git a/3rdparty/appweb/web/assets/solid-gauge.js b/openlibs/appweb/web/assets/solid-gauge.js similarity index 100% rename from 3rdparty/appweb/web/assets/solid-gauge.js rename to openlibs/appweb/web/assets/solid-gauge.js diff --git a/3rdparty/appweb/web/device.php b/openlibs/appweb/web/device.php similarity index 100% rename from 3rdparty/appweb/web/device.php rename to openlibs/appweb/web/device.php diff --git a/3rdparty/appweb/web/index.php b/openlibs/appweb/web/index.php similarity index 100% rename from 3rdparty/appweb/web/index.php rename to openlibs/appweb/web/index.php diff --git a/3rdparty/build.sh b/openlibs/build.sh similarity index 100% rename from 3rdparty/build.sh rename to openlibs/build.sh diff --git a/3rdparty/busybox/build.sh b/openlibs/busybox/build.sh similarity index 92% rename from 3rdparty/busybox/build.sh rename to openlibs/busybox/build.sh index 6773d80..615c9dd 100755 --- a/3rdparty/busybox/build.sh +++ b/openlibs/busybox/build.sh @@ -6,7 +6,7 @@ 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- @@ -59,7 +59,7 @@ cd $SRC_NAME - sed -i "s|^CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX=\"${CROSSTOOL}\"|g" .config + sed -i "s|^CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX=\"${CROSS_COMPILE}\"|g" .config sed -i "s|^CONFIG_PREFIX.*|CONFIG_PREFIX=\"$ROOTFS_PATH\"|g" .config make diff --git a/3rdparty/busybox/config/busybox-1.31.0.config b/openlibs/busybox/config/busybox-1.31.0.config similarity index 100% rename from 3rdparty/busybox/config/busybox-1.31.0.config rename to openlibs/busybox/config/busybox-1.31.0.config diff --git a/3rdparty/cJSON/build.sh b/openlibs/cJSON/build.sh similarity index 80% rename from 3rdparty/cJSON/build.sh rename to openlibs/cJSON/build.sh index e125f1b..69e60a3 100755 --- a/3rdparty/cJSON/build.sh +++ b/openlibs/cJSON/build.sh @@ -11,7 +11,7 @@ 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- mkdir -p ${PREFIX_PATH} @@ -39,15 +39,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " @@ -81,7 +81,7 @@ cd ${SRC_NAME} - sed -i -e "s|^CC.*|CC = ${CROSSTOOL}gcc -std=c89|g" Makefile + sed -i -e "s|^CC.*|CC = ${CROSS_COMPILE}gcc -std=c89|g" Makefile sed -i -e "s|^PREFIX.*|PREFIX = ${PREFIX_PATH}|g" Makefile make diff --git a/3rdparty/curl/build.sh b/openlibs/curl/build.sh similarity index 85% rename from 3rdparty/curl/build.sh rename to openlibs/curl/build.sh index 2182ba5..f9bccac 100755 --- a/3rdparty/curl/build.sh +++ b/openlibs/curl/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/dhcpd/build.sh b/openlibs/dhcpd/build.sh similarity index 86% rename from 3rdparty/dhcpd/build.sh rename to openlibs/dhcpd/build.sh index b25724b..bcedeac 100755 --- a/3rdparty/dhcpd/build.sh +++ b/openlibs/dhcpd/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/dnsmasq/build.sh b/openlibs/dnsmasq/build.sh similarity index 84% rename from 3rdparty/dnsmasq/build.sh rename to openlibs/dnsmasq/build.sh index 0c90e86..4ddcb68 100755 --- a/3rdparty/dnsmasq/build.sh +++ b/openlibs/dnsmasq/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/dosfstools/build.sh b/openlibs/dosfstools/build.sh similarity index 85% rename from 3rdparty/dosfstools/build.sh rename to openlibs/dosfstools/build.sh index 2a22100..912824f 100755 --- a/3rdparty/dosfstools/build.sh +++ b/openlibs/dosfstools/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/dropbear/S20_dropbear b/openlibs/dropbear/S20_dropbear similarity index 100% rename from 3rdparty/dropbear/S20_dropbear rename to openlibs/dropbear/S20_dropbear diff --git a/3rdparty/dropbear/build.sh b/openlibs/dropbear/build.sh similarity index 87% rename from 3rdparty/dropbear/build.sh rename to openlibs/dropbear/build.sh index 94e814d..d6a55c7 100755 --- a/3rdparty/dropbear/build.sh +++ b/openlibs/dropbear/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/e2fsprogs/build.sh b/openlibs/e2fsprogs/build.sh similarity index 85% rename from 3rdparty/e2fsprogs/build.sh rename to openlibs/e2fsprogs/build.sh index 6a88cae..0d39ea1 100755 --- a/3rdparty/e2fsprogs/build.sh +++ b/openlibs/e2fsprogs/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/ethtool/build.sh b/openlibs/ethtool/build.sh similarity index 85% rename from 3rdparty/ethtool/build.sh rename to openlibs/ethtool/build.sh index 8872881..f16f65c 100755 --- a/3rdparty/ethtool/build.sh +++ b/openlibs/ethtool/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/fbgrab/build.sh b/openlibs/fbgrab/build.sh similarity index 85% rename from 3rdparty/fbgrab/build.sh rename to openlibs/fbgrab/build.sh index f3442b8..4b8f3c7 100755 --- a/3rdparty/fbgrab/build.sh +++ b/openlibs/fbgrab/build.sh @@ -12,7 +12,7 @@ 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() { @@ -38,14 +38,14 @@ 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 " diff --git a/3rdparty/ffmpeg/build.sh b/openlibs/ffmpeg/build.sh similarity index 80% rename from 3rdparty/ffmpeg/build.sh rename to openlibs/ffmpeg/build.sh index e79703b..4761809 100755 --- a/3rdparty/ffmpeg/build.sh +++ b/openlibs/ffmpeg/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " @@ -77,7 +77,7 @@ tar -xjf ${SRC_NAME}.${PACK_SUFIX} cd ${SRC_NAME} - ./configure --prefix=${PREFIX_PATH} --cross-prefix=${CROSSTOOL} --target-os=linux --enable-cross-compile --arch=arm + ./configure --prefix=${PREFIX_PATH} --cross-prefix=${CROSS_COMPILE} --target-os=linux --enable-cross-compile --arch=arm check_result "ERROR: configure ${SRC_NAME} failure" make diff --git a/3rdparty/file/build.sh b/openlibs/file/build.sh similarity index 85% rename from 3rdparty/file/build.sh rename to openlibs/file/build.sh index 7bcfb67..5b1ffeb 100755 --- a/3rdparty/file/build.sh +++ b/openlibs/file/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/glib/build.sh b/openlibs/glib/build.sh similarity index 90% rename from 3rdparty/glib/build.sh rename to openlibs/glib/build.sh index ddc7e41..c1f5606 100755 --- a/3rdparty/glib/build.sh +++ b/openlibs/glib/build.sh @@ -11,7 +11,7 @@ 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- mkdir -p ${PREFIX_PATH}/{include,lib,bin} @@ -39,14 +39,14 @@ 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 " diff --git a/3rdparty/gstreamer/build.sh b/openlibs/gstreamer/build.sh similarity index 95% rename from 3rdparty/gstreamer/build.sh rename to openlibs/gstreamer/build.sh index 51cfa75..ee7939b 100755 --- a/3rdparty/gstreamer/build.sh +++ b/openlibs/gstreamer/build.sh @@ -12,7 +12,7 @@ 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- mkdir -p $PREFIX_PATH @@ -40,14 +40,14 @@ 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 " diff --git a/3rdparty/iconv/build.sh b/openlibs/iconv/build.sh similarity index 84% rename from 3rdparty/iconv/build.sh rename to openlibs/iconv/build.sh index 976b7cc..b6afe8b 100755 --- a/3rdparty/iconv/build.sh +++ b/openlibs/iconv/build.sh @@ -10,7 +10,7 @@ PROJ_PATH=`pwd`/../ INST_PATH=${PROJ_PATH}/install -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- LYFTP_SRC=http://master.weike-iot.com:2211/src/ @@ -38,14 +38,14 @@ 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 " diff --git a/3rdparty/imageMagick/build.sh b/openlibs/imageMagick/build.sh similarity index 86% rename from 3rdparty/imageMagick/build.sh rename to openlibs/imageMagick/build.sh index 5d52fca..c95837f 100755 --- a/3rdparty/imageMagick/build.sh +++ b/openlibs/imageMagick/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/iptables/build.sh b/openlibs/iptables/build.sh similarity index 85% rename from 3rdparty/iptables/build.sh rename to openlibs/iptables/build.sh index b92c9de..f3d1c89 100755 --- a/3rdparty/iptables/build.sh +++ b/openlibs/iptables/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/libconfig/build.sh b/openlibs/libconfig/build.sh similarity index 83% rename from 3rdparty/libconfig/build.sh rename to openlibs/libconfig/build.sh index 38c1147..1cf2145 100755 --- a/3rdparty/libconfig/build.sh +++ b/openlibs/libconfig/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,15 +37,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/libdrm/build.sh b/openlibs/libdrm/build.sh similarity index 84% rename from 3rdparty/libdrm/build.sh rename to openlibs/libdrm/build.sh index ca2cd9d..739910d 100755 --- a/3rdparty/libdrm/build.sh +++ b/openlibs/libdrm/build.sh @@ -11,7 +11,7 @@ CUR_PATH=`pwd` INST_PATH=${PROJ_PATH}/install -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- LYFTP_SRC=http://master.weike-iot.com:2211/src/ @@ -39,14 +39,14 @@ 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 " diff --git a/3rdparty/libevent/build.sh b/openlibs/libevent/build.sh similarity index 84% rename from 3rdparty/libevent/build.sh rename to openlibs/libevent/build.sh index 3fb12de..3e6f109 100755 --- a/3rdparty/libevent/build.sh +++ b/openlibs/libevent/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,15 +37,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/libgpiod/build.sh b/openlibs/libgpiod/build.sh similarity index 100% rename from 3rdparty/libgpiod/build.sh rename to openlibs/libgpiod/build.sh diff --git a/3rdparty/libkcapi/build.sh b/openlibs/libkcapi/build.sh similarity index 87% rename from 3rdparty/libkcapi/build.sh rename to openlibs/libkcapi/build.sh index ce86e65..93db40f 100755 --- a/3rdparty/libkcapi/build.sh +++ b/openlibs/libkcapi/build.sh @@ -16,7 +16,7 @@ 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() { @@ -42,14 +42,14 @@ 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 " diff --git a/3rdparty/libpng/build.sh b/openlibs/libpng/build.sh similarity index 86% rename from 3rdparty/libpng/build.sh rename to openlibs/libpng/build.sh index 6c45b4c..73b4b27 100755 --- a/3rdparty/libpng/build.sh +++ b/openlibs/libpng/build.sh @@ -12,7 +12,7 @@ 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() { @@ -38,14 +38,14 @@ 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 " diff --git a/3rdparty/libressl/build.sh b/openlibs/libressl/build.sh similarity index 86% rename from 3rdparty/libressl/build.sh rename to openlibs/libressl/build.sh index 317705f..7819209 100755 --- a/3rdparty/libressl/build.sh +++ b/openlibs/libressl/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/libxml2/build.sh b/openlibs/libxml2/build.sh similarity index 100% rename from 3rdparty/libxml2/build.sh rename to openlibs/libxml2/build.sh diff --git a/3rdparty/lrzsz/build.sh b/openlibs/lrzsz/build.sh similarity index 86% rename from 3rdparty/lrzsz/build.sh rename to openlibs/lrzsz/build.sh index 64098b8..ecbec6f 100755 --- a/3rdparty/lrzsz/build.sh +++ b/openlibs/lrzsz/build.sh @@ -12,7 +12,7 @@ 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() { @@ -38,14 +38,14 @@ 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 " diff --git a/3rdparty/mosquitto/build.sh b/openlibs/mosquitto/build.sh similarity index 85% rename from 3rdparty/mosquitto/build.sh rename to openlibs/mosquitto/build.sh index 1838c8a..2623d8c 100755 --- a/3rdparty/mosquitto/build.sh +++ b/openlibs/mosquitto/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,15 +37,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/mplayer/build.sh b/openlibs/mplayer/build.sh similarity index 87% rename from 3rdparty/mplayer/build.sh rename to openlibs/mplayer/build.sh index fc5681e..e009c3c 100755 --- a/3rdparty/mplayer/build.sh +++ b/openlibs/mplayer/build.sh @@ -15,7 +15,7 @@ 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() { @@ -41,15 +41,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/ntpdate/build.sh b/openlibs/ntpdate/build.sh similarity index 85% rename from 3rdparty/ntpdate/build.sh rename to openlibs/ntpdate/build.sh index 5282c4c..dd77c47 100755 --- a/3rdparty/ntpdate/build.sh +++ b/openlibs/ntpdate/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/opencv/build.sh b/openlibs/opencv/build.sh similarity index 92% rename from 3rdparty/opencv/build.sh rename to openlibs/opencv/build.sh index fa42ade..77179d5 100755 --- a/3rdparty/opencv/build.sh +++ b/openlibs/opencv/build.sh @@ -6,7 +6,7 @@ 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- TOOLCHAIN=cortexa7.toolchain.cmake @@ -61,7 +61,7 @@ cat >platforms/linux/${TOOLCHAIN} <<EOF set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version") -set(GNU_MACHINE "${CROSSTOOL%*-}" CACHE STRING "GNU compiler triple") +set(GNU_MACHINE "${CROSS_COMPILE%*-}" CACHE STRING "GNU compiler triple") include("\${CMAKE_CURRENT_LIST_DIR}/arm.toolchain.cmake") EOF diff --git a/3rdparty/openssh/build.sh b/openlibs/openssh/build.sh similarity index 90% rename from 3rdparty/openssh/build.sh rename to openlibs/openssh/build.sh index 6dd8193..96afb7c 100755 --- a/3rdparty/openssh/build.sh +++ b/openlibs/openssh/build.sh @@ -13,7 +13,7 @@ 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() { @@ -39,14 +39,14 @@ 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 " diff --git a/3rdparty/openssh/openssl/build.sh b/openlibs/openssh/openssl/build.sh similarity index 78% rename from 3rdparty/openssh/openssl/build.sh rename to openlibs/openssh/openssl/build.sh index ed99b8c..dc90b85 100755 --- a/3rdparty/openssh/openssl/build.sh +++ b/openlibs/openssh/openssl/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " @@ -73,7 +73,7 @@ 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" diff --git a/3rdparty/openssh/zlib/build.sh b/openlibs/openssh/zlib/build.sh similarity index 83% rename from 3rdparty/openssh/zlib/build.sh rename to openlibs/openssh/zlib/build.sh index e92e552..ca78a2f 100755 --- a/3rdparty/openssh/zlib/build.sh +++ b/openlibs/openssh/zlib/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/openssl/build.sh b/openlibs/openssl/build.sh similarity index 81% rename from 3rdparty/openssl/build.sh rename to openlibs/openssl/build.sh index bdba521..9e4ceac 100755 --- a/3rdparty/openssl/build.sh +++ b/openlibs/openssl/build.sh @@ -12,7 +12,7 @@ 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() { @@ -38,14 +38,14 @@ 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 " @@ -74,7 +74,7 @@ tar -xzf ${SRC_NAME}.${PACK_SUFIX} cd ${SRC_NAME} - CROSS_COMPILE=${CROSSTOOL} CFLAGS=-I${PROJ_PATH}/cryptodev-linux ./Configure \ + CROSS_COMPILE=${CROSS_COMPILE} CFLAGS=-I${PROJ_PATH}/cryptodev-linux ./Configure \ threads -shared -no-zlib --prefix=$PREFIX_PATH --openssldir=$PREFIX_PATH \ enable-devcryptoeng linux-armv4 diff --git a/3rdparty/openssl/cryptodev-linux/crypto/cryptodev.h b/openlibs/openssl/cryptodev-linux/crypto/cryptodev.h similarity index 100% rename from 3rdparty/openssl/cryptodev-linux/crypto/cryptodev.h rename to openlibs/openssl/cryptodev-linux/crypto/cryptodev.h diff --git a/3rdparty/pppd/build.sh b/openlibs/pppd/build.sh similarity index 75% rename from 3rdparty/pppd/build.sh rename to openlibs/pppd/build.sh index e3990c0..18af25b 100755 --- a/3rdparty/pppd/build.sh +++ b/openlibs/pppd/build.sh @@ -11,9 +11,9 @@ 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- -SYSROOT=`${CROSSTOOL}gcc -print-sysroot` +SYSROOT=`${CROSS_COMPILE}gcc -print-sysroot` function msg_banner() { @@ -39,14 +39,14 @@ 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 " @@ -80,18 +80,18 @@ cd ${SRC_NAME} patch -p1 < ../patch/${SRC_NAME}.patch - sed -i -e "s|.*CC = .*|CC=${CROSSTOOL}gcc|g" pppd/Makefile.linux + sed -i -e "s|.*CC = .*|CC=${CROSS_COMPILE}gcc|g" pppd/Makefile.linux sed -i -e "s|^OPENSSL_INCLUDE_DIR=.*|OPENSSL_INCLUDE_DIR=${SYSROOT}/usr/include/openssl|g" pppd/Makefile.linux - sed -i -e "s|.*CC = .*|CC=${CROSSTOOL}gcc|g" chat/Makefile.linux + sed -i -e "s|.*CC = .*|CC=${CROSS_COMPILE}gcc|g" chat/Makefile.linux cd pppd - make CC="${CROSSTOOL}gcc -static" -f Makefile.linux && ${CROSSTOOL}strip pppd + make CC="${CROSS_COMPILE}gcc -static" -f Makefile.linux && ${CROSS_COMPILE}strip pppd check_result "ERROR: compile ${SRC_NAME} pppd failure" cp pppd ../../ cd - cd chat - make CC="${CROSSTOOL}gcc -static" -f Makefile.linux && ${CROSSTOOL}strip chat + make CC="${CROSS_COMPILE}gcc -static" -f Makefile.linux && ${CROSS_COMPILE}strip chat check_result "ERROR: compile ${SRC_NAME} chat failure" cp chat ../.. cd - diff --git a/3rdparty/pppd/patch/ppp-2.4.7.patch b/openlibs/pppd/patch/ppp-2.4.7.patch similarity index 100% rename from 3rdparty/pppd/patch/ppp-2.4.7.patch rename to openlibs/pppd/patch/ppp-2.4.7.patch diff --git a/3rdparty/qt/build_QT5.sh b/openlibs/qt/build_QT5.sh similarity index 94% rename from 3rdparty/qt/build_QT5.sh rename to openlibs/qt/build_QT5.sh index 756a604..ff33cff 100755 --- a/3rdparty/qt/build_QT5.sh +++ b/openlibs/qt/build_QT5.sh @@ -25,7 +25,7 @@ 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() @@ -77,12 +77,12 @@ QMAKE_FILE=qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf - grep "`dirname ${CROSSTOOL}`" ${QMAKE_FILE} > /dev/null 2>&1 + grep "`dirname ${CROSS_COMPILE}`" ${QMAKE_FILE} > /dev/null 2>&1 if [ $? != 0 ] ; then - sed -i "s|arm-linux-gnueabi-|$CROSSTOOL|" ${QMAKE_FILE} + sed -i "s|arm-linux-gnueabi-|$CROSS_COMPILE|" ${QMAKE_FILE} fi - export CROSS_SYSROOT=`${CROSSTOOL}gcc -print-sysroot` + export CROSS_SYSROOT=`${CROSS_COMPILE}gcc -print-sysroot` ./configure -opensource -confirm-license -release -shared -strip -c++std c++11 \ -extprefix ${QT_INST_PATH} -prefix ${QT_INST_PATH} -sysroot ${CROSS_SYSROOT} -pkg-config \ diff --git a/3rdparty/qt/tslib/build.sh b/openlibs/qt/tslib/build.sh similarity index 84% rename from 3rdparty/qt/tslib/build.sh rename to openlibs/qt/tslib/build.sh index 75237ff..83748c5 100755 --- a/3rdparty/qt/tslib/build.sh +++ b/openlibs/qt/tslib/build.sh @@ -10,7 +10,7 @@ PROJ_PATH=`pwd`/.. INST_PATH=${PROJ_PATH}/../install -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- LYFTP_SRC=http://master.weike-iot.com:2211/src/ function msg_banner() @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/sqlite/build.sh b/openlibs/sqlite/build.sh similarity index 85% rename from 3rdparty/sqlite/build.sh rename to openlibs/sqlite/build.sh index ab86538..ce0682e 100755 --- a/3rdparty/sqlite/build.sh +++ b/openlibs/sqlite/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/stunnel/build.sh b/openlibs/stunnel/build.sh similarity index 86% rename from 3rdparty/stunnel/build.sh rename to openlibs/stunnel/build.sh index 87ae871..62b6714 100755 --- a/3rdparty/stunnel/build.sh +++ b/openlibs/stunnel/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,15 +37,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/tree/build.sh b/openlibs/tree/build.sh similarity index 81% rename from 3rdparty/tree/build.sh rename to openlibs/tree/build.sh index a308064..0141eb6 100755 --- a/3rdparty/tree/build.sh +++ b/openlibs/tree/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " @@ -75,7 +75,7 @@ tar -xzf ${SRC_NAME}.${PACK_SUFIX} cd ${SRC_NAME} - sed -i -e "s|^CC=.*|CC=${CROSSTOOL}gcc|g" Makefile + sed -i -e "s|^CC=.*|CC=${CROSS_COMPILE}gcc|g" Makefile make check_result "ERROR: compile ${SRC_NAME} failure" diff --git a/3rdparty/util-linux/build.sh b/openlibs/util-linux/build.sh similarity index 86% rename from 3rdparty/util-linux/build.sh rename to openlibs/util-linux/build.sh index 253bc7a..14c02b6 100755 --- a/3rdparty/util-linux/build.sh +++ b/openlibs/util-linux/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " diff --git a/3rdparty/valgrind/build.sh b/openlibs/valgrind/build.sh similarity index 88% rename from 3rdparty/valgrind/build.sh rename to openlibs/valgrind/build.sh index 1911bae..5de8049 100755 --- a/3rdparty/valgrind/build.sh +++ b/openlibs/valgrind/build.sh @@ -21,7 +21,7 @@ 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() { @@ -47,15 +47,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/vsftpd/build.sh b/openlibs/vsftpd/build.sh similarity index 80% rename from 3rdparty/vsftpd/build.sh rename to openlibs/vsftpd/build.sh index c1ee77b..de3c9e9 100755 --- a/3rdparty/vsftpd/build.sh +++ b/openlibs/vsftpd/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,15 +37,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " @@ -78,7 +78,7 @@ tar -xzf ${SRC_NAME}.${PACK_SUFIX} cd ${SRC_NAME} - sed -i -e "s|^CC.*|CC = ${CROSSTOOL}gcc|g" Makefile + sed -i -e "s|^CC.*|CC = ${CROSS_COMPILE}gcc|g" Makefile make check_result "ERROR: compile ${SRC_NAME} failure" diff --git a/3rdparty/zbar/build.sh b/openlibs/zbar/build.sh similarity index 87% rename from 3rdparty/zbar/build.sh rename to openlibs/zbar/build.sh index 12d4675..ad030f8 100755 --- a/3rdparty/zbar/build.sh +++ b/openlibs/zbar/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,15 +37,15 @@ function export_cross() { # export cross toolchain - export CC=${CROSSTOOL}gcc - export CXX=${CROSSTOOL}g++ - 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 CXX=${CROSS_COMPILE}g++ + 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 " diff --git a/3rdparty/zlib/build.sh b/openlibs/zlib/build.sh similarity index 84% rename from 3rdparty/zlib/build.sh rename to openlibs/zlib/build.sh index cbc1a96..1f75580 100755 --- a/3rdparty/zlib/build.sh +++ b/openlibs/zlib/build.sh @@ -11,7 +11,7 @@ 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() { @@ -37,14 +37,14 @@ 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 " -- Gitblit v1.9.1