NVIDIA Tegra Linux Driver Package

Development Guide
32.2 Release

The L4T Toolchain
Toolchain Information
Downloading the Toolchain
Extracting the Toolchain
Setting the CROSS_COMPILE Environment Variable
NVIDIA® specifies the Linaro® gcc 7.3.1 2018.05 AArch64 toolchain for:
Cross-compiling applications to run on L4T rel-32.
Cross-compiling code in the L4T rel-32 source release.
This topic describes how to obtain this toolchain.
Toolchain Information
The toolchain contains the following components:
GCC version: 7.3.1
Binutils version:
Glibc version: 2.25
Downloading the Toolchain
Download the pre-built toolchain binaries from:
Extracting the Toolchain
Execute the following commands to extract the toolchain:
$ mkdir $HOME/l4t-gcc
$ cd $HOME/l4t-gcc
$ tar xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
Setting the CROSS_COMPILE Environment Variable
Many build systems require you to set environment variable CROSS_COMPILE to point at the toolchain to use. To set CROSS_COMPILE for the AArch64 toolchain:
$ export CROSS_COMPILE=$HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-