| | |
| | | |
| | | OPENCV_SRC=opencv-3.4.6 |
| | | |
| | | LYFTP_SRC=ftp://master.iot-yun.club/src/ |
| | | |
| | | CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | |
| | | TOOLCHAIN=cortexa7.toolchain.cmake |
| | | |
| | | JOBS=`cat /proc/cpuinfo | grep processor | wc -l` |
| | | |
| | | if [ ! -d $OPENCV_SRC ] ; then |
| | | if [ ! -f $OPENCV_SRC.zip ] ; then |
| | | wget ftp://master.iot-yun.club/src/$OPENCV_SRC.zip |
| | | wget $LYFTP_SRC/$OPENCV_SRC.zip |
| | | fi |
| | | |
| | | unzip $OPENCV_SRC.zip |
| | |
| | | cat >platforms/linux/${TOOLCHAIN} <<EOF |
| | | |
| | | set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version") |
| | | set(GNU_MACHINE "/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi" CACHE STRING "GNU compiler triple") |
| | | set(GNU_MACHINE "${CROSSTOOL%*-}" CACHE STRING "GNU compiler triple") |
| | | include("\${CMAKE_CURRENT_LIST_DIR}/arm.toolchain.cmake") |
| | | |
| | | EOF |