| | |
| | | # This shell script used to setup imx6ull build envrionment |
| | | # |
| | | |
| | | LYFTP_PUB=http://wekei-iot.com:2211/imx/igkboard/tools/lintools |
| | | LYFTP_PUB=http://master.iot-yun.club:2211/imx/crosstool |
| | | |
| | | # display in yellow |
| | | function pr_warn() { |
| | |
| | | function install_buildroot() |
| | | { |
| | | BUILDROOT_PATH=/opt/buildroot |
| | | BUILDROOT_NAME=cortexA7 |
| | | |
| | | BUILDROOT_VER=buildroot-2021.02.7-cortexA7 |
| | | BUILDROOT_TAR=${BUILDROOT_VER}.tar.bz2 |
| | | BUILDROOT_DLADDR=${LYFTP_PUB}/$BUILDROOT_TAR |
| | | BUILDROOT_NAME=gcc-10.4-cortexA7-2023.02 |
| | | BUILDROOT_TAR=$BUILDROOT_NAME.tar.xz |
| | | |
| | | if [ -d ${BUILDROOT_PATH}/${BUILDROOT_NAME} ] ; then |
| | | pr_warn "Buildroot already installed to $BUILDROOT_PATH/$BUILDROOT_NAME" |
| | |
| | | mkdir -p ${BUILDROOT_PATH} |
| | | |
| | | if [ ! -f $BUILDROOT_TAR ] ; then |
| | | pr_info "download $BUILDROOT_VER now..." |
| | | wget -c $BUILDROOT_DLADDR |
| | | pr_info "download $BUILDROOT_NAME now..." |
| | | wget -c $LYFTP_PUB/$BUILDROOT_TAR |
| | | fi |
| | | |
| | | pr_info "install $BUILDROOT_VER to $BUILDROOT_PATH/$BUILDROOT_NAME now..." |
| | | tar -xjf ${BUILDROOT_TAR} -C ${BUILDROOT_PATH} |
| | | pr_info "install $BUILDROOT_NAME to $BUILDROOT_PATH now..." |
| | | tar -xJf ${BUILDROOT_TAR} -C ${BUILDROOT_PATH} |
| | | |
| | | $BUILDROOT_PATH/$BUILDROOT_NAME/bin/arm-linux-gcc -v |
| | | |
| | |
| | | tar -xJf $ARMTOOL_PACK.tar.xz -C /opt |
| | | rm -f $ARMTOOL_PACK.tar.xz |
| | | |
| | | mv /opt/$ARMTOOL_PACK /opt/$ARMTOOL_NAME |
| | | mv /opt/$ARMTOOL_PACK /opt/$ARMTOOL_NAME |
| | | |
| | | /opt/$ARMTOOL_NAME/bin/arm-none-linux-gnueabihf-gcc -v |
| | | pr_info "cross compiler installed to \"/opt/$ARMTOOL_NAME\" successfully" |