#!/bin/bash
if [ $BASH_SOURCE == $0 ];then
echo -e "\n this script should be sourced, like \"source ${0#*/}\".\n"
exit 1
fi
if [ ! -z $CROSS_COMPILE ];then
echo -e "\n it is already in cross comiling mode.\n"
return 1;
fi
export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin:$PATH
#export GCC_COLORS=auto
export ARCH=arm64
export CROSS_COMPILE=/opt/FriendlyARM/toolchain/6.4-aarch64/bin/aarch64-linux-
把你的交叉编译器的路径修改到这里