Skip to content

Commit 7990a0d

Browse files
docs(GCC_Toolchain): Update the cross compile and sysroot paths for AM335x/AM437x
Documentation update for the cross compile and sysroot paths specific to AM335x/AM437x different from other sitara platforms Signed-off-by: Telukula Jeevan Kumar Sahu <[email protected]>
1 parent 9208381 commit 7990a0d

File tree

1 file changed

+53
-23
lines changed

1 file changed

+53
-23
lines changed

source/linux/Overview/GCC_ToolChain.rst

Lines changed: 53 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,22 @@ GCC ToolChain Setup
99
1010
Before compiling any of the sources referenced in this document, set the cross compiler paths to the toolchains packaged in the Processor SDK [Recommended] as shown below. Refer to :ref:`yocto-toolchain` section for more details on usage.
1111

12-
.. code-block:: console
12+
.. ifconfig:: CONFIG_part_variant in ('AM335X', 'AM437X')
13+
14+
.. code-block:: console
15+
16+
host# export CROSS_COMPILE_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-"
17+
host# export SYSROOT_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi"
18+
host# export CC_64="${CROSS_COMPILE_64}gcc --sysroot=${SYSROOT_64}"
1319
14-
host# export CROSS_COMPILE_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-"
15-
host# export SYSROOT_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/aarch64-oe-linux"
16-
host# export CC_64="${CROSS_COMPILE_64}gcc --sysroot=${SYSROOT_64}"
17-
host# export CROSS_COMPILE_32="${SDK_INSTALL_DIR}/k3r5-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-eabi/arm-oe-eabi-"
20+
.. ifconfig:: CONFIG_part_variant not in ('AM335X', 'AM437X')
21+
22+
.. code-block:: console
23+
24+
host# export CROSS_COMPILE_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-"
25+
host# export SYSROOT_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/aarch64-oe-linux"
26+
host# export CC_64="${CROSS_COMPILE_64}gcc --sysroot=${SYSROOT_64}"
27+
host# export CROSS_COMPILE_32="${SDK_INSTALL_DIR}/k3r5-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-eabi/arm-oe-eabi-"
1828
1929
If the Processor SDK is not installed, the Arm GNU toolchains can be downloaded and setup. Refer to :ref:`external-arm-toolchain` section for more details on usage.
2030

@@ -46,22 +56,43 @@ The |__SDK_FULL_NAME__| package comes with this toolchain preinstalled at linux-
4656
directory within the SDK. Below paths are relative to the <SDK_INSTALL_DIR> and will be
4757
referred to using the first column in the following sections.
4858

49-
.. list-table:: Linux Devkit Contents
50-
:widths: 20 30 50
51-
:header-rows: 1
52-
53-
* - Variable
54-
- Location
55-
- Description
56-
* - CROSS_COMPILE_64
57-
- linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-
58-
- Cross compiler toolchain for the ARMv8 architecture
59-
* - SYSROOT_64
60-
- linux-devkit/sysroots/aarch64-oe-linux/
61-
- Sysroot with the cross compiled libraries and headers for the ARMv8 architecture with Linux OS
62-
* - ENV_SETUP_64
63-
- linux-devkit/environment-setup-aarch64-oe-linux
64-
- Shell script that sets environment variables to compile binaries for the ARMv8 linux target
59+
.. ifconfig:: CONFIG_part_variant in ('AM335X', 'AM437X')
60+
61+
.. list-table:: Linux Devkit Contents
62+
:widths: 20 30 50
63+
:header-rows: 1
64+
65+
* - Variable
66+
- Location
67+
- Description
68+
* - CROSS_COMPILE_64
69+
- linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-
70+
- Cross compiler toolchain for the ARMv8 architecture
71+
* - SYSROOT_64
72+
- linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/
73+
- Sysroot with the cross compiled libraries and headers for the ARMv8 architecture with Linux OS
74+
* - ENV_SETUP_64
75+
- linux-devkit/environment-setup-armv7at2hf-neon-oe-linux-gnueabi
76+
- Shell script that sets environment variables to compile binaries for the ARMv8 linux target
77+
78+
.. ifconfig:: CONFIG_part_variant not in ('AM335X', 'AM437X')
79+
80+
.. list-table:: Linux Devkit Contents
81+
:widths: 20 30 50
82+
:header-rows: 1
83+
84+
* - Variable
85+
- Location
86+
- Description
87+
* - CROSS_COMPILE_64
88+
- linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-
89+
- Cross compiler toolchain for the ARMv8 architecture
90+
* - SYSROOT_64
91+
- linux-devkit/sysroots/aarch64-oe-linux/
92+
- Sysroot with the cross compiled libraries and headers for the ARMv8 architecture with Linux OS
93+
* - ENV_SETUP_64
94+
- linux-devkit/environment-setup-aarch64-oe-linux
95+
- Shell script that sets environment variables to compile binaries for the ARMv8 linux target
6596

6697
.. rubric:: Target Sysroot
6798
:name: cross-compiled-libraries
@@ -133,7 +164,7 @@ libraries.
133164
.. code-block:: c
134165
135166
#include <stdio.h>
136-
167+
137168
int main() {
138169
printf ("Hello World from TI!!!\n");
139170
return 0;
@@ -202,7 +233,6 @@ directory within the SDK. Below paths are relative to the <SDK_INSTALL_DIR>.
202233

203234
|
204235
205-
206236
.. _external-arm-toolchain:
207237

208238
ARM toolchains

0 commit comments

Comments
 (0)