How to Build Cross Compile Toolchains For i.MX8M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Build Cross Compile Toolchains For i.MX8M

6,113 Views
bakbad
Contributor III

Hi, everyone

I want to build a cross compile toolchains in ubuntu for imx8mq, but can not find related toolschains in nxp.com. Please help me.

Thanks in advance.

Regards,

bo xu

Labels (2)
0 Kudos
1 Reply

5,693 Views
igorpadykov
NXP Employee
NXP Employee

Hi bo

install the Ubuntu toolchain gcc-aarch64-linux-gnu GNU C compiler for the arm64 architecture:
$ sudo apt-get install gcc-aarch64-linux-gnu
Export the environment variables:
$ export ARCH=arm64
$ export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------