#!/bin/bash set -e OPENCV_SRC=opencv-3.4.6 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 fi unzip $OPENCV_SRC.zip fi cd $OPENCV_SRC rm -f platforms/linux/${TOOLCHAIN} cat >platforms/linux/${TOOLCHAIN} <