Install ARM Linux toolchain

From EdWiki

Revision as of 14:57, 28 November 2020 by Jshankar (Talk | contribs) (Install toolchain)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What is a cross-compilation toolchain?

  • A set of tools to build and debug code for a target architecture, from a machine running a different architecture.
  • Example: building code for ARM from a x86-64 PC.

Install toolchain

$ cd ~/Downloads
$ Download GNU Toolchain for the A-profile Architecture: 8.3-2019.03 from here
$ sudo tar xvf ~/Downloads/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz -C /opt/
$ export CC=/opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-