Files
meta-bsp-imx8mm/Documentation/toolchain.md
T
2020-06-25 15:54:41 +03:00

1017 B

Linaro toolchain how to

  • Downlaod the Linaro compiler:
cd ~/Downloads
wget https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/aarch64-linux-gnu/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
  • Install it:
sudo tar -C /opt -xf ~/Downloads/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
  • Set environment variables:
export ARCH=arm64
export CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
  • Get the compiler version information.
    Make sure that the compiler installed and the environment set correctly, issue:
${CROSS_COMPILE}gcc --version

aarch64-linux-gnu-gcc (Linaro GCC 7.4-2019.02) 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.