$tar xfJp Ambarella_Toolchain_Linaro_2018.08.tar.xz -C ../
$ ls ..
$ cd ../Ambarella_Toolchain_Linaro_2018.08/
$ ls
$ ./ubuntuToolChain-201808
sudo vi /etc/profile
添加 export PATH=$PATH:/usr/local/linaro-aarch64-2018.08-gcc8.2/bin/
Make
$ cd cv22_linux_sdk_1.5/ambarella/boards/cv22_xx_auto
$ source ../../build/env/aarch64-linaro-gcc.env
=====================================================
TOOLCHAIN PATH: /usr/local/linaro-aarch64-2018.08-gcc8.2
TOOLCHAIN NANE: aarch64-linux-gnu-gcc
TOOLCHAIN VERSION: 8.2.1
=====================================================
$ make sync_build_mkcfg
$ make cv22_xx_config
$ make -j8
aarch64-linux-gnu-gcc mycom.c -o mycom
来源:CSDN
作者:太白醉客
链接:https://blog.csdn.net/lx123010/article/details/103895479