.. _AT.JetsonLinuxToolchain:

.. include:: ../../content/swdocs.rsts

.. spelling::
   aarch
   Binutils
   Bootlin
   Glibc
   bootlin

Jetson Linux Toolchain
!!!!!!!!!!!!!!!!!!!!!!

|NVIDIA(r)| specifies the Bootlin ``gcc`` 9.3.0 2020.08-1 aarch64 toolchain for:

- Cross-compiling applications to run on this release of |NVIDIA(r)| |Jetson(tm)| Linux.
- Cross-compiling code in the current-release Jetson Linux source.

This topic describes how to obtain the toolchain.

Toolchain Information
@@@@@@@@@@@@@@@@@@@@@

The toolchain contains the following components:

-  GCC version: 9.3.0
-  Binutils version: 2.33.1
-  Glibc version: 2.31

Downloading the Toolchain
@@@@@@@@@@@@@@@@@@@@@@@@@

Download the `pre-built toolchain binaries <https://developer.nvidia.com/embedded/dlc/l4t-gcc-9-3-0-toolchain-64-bit>`__ from Nvidia developer download center.

Extracting the Toolchain
@@@@@@@@@@@@@@@@@@@@@@@@

To extract the toolchain, enter these commands::

    $ mkdir $HOME/l4t-gcc
    $ cd $HOME/l4t-gcc
    $ tar xf aarch64--glibc--stable-2020.08-1.tar.bz2


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, enter the command::

    $ export CROSS_COMPILE=$HOME/l4t-gcc/bin/aarch64-buildroot-linux-gnu-
