
The root file system and files needed for cross-builds like headers are located in /opt/im圆/sdk/sysroots/cortexa9hf-neon-poky-linux-gnueabi. The GCC toolchain, which run on the x86_64-based host computer, is located in /opt/im圆/sdk/sysroots/x86_64-pokysdk-linux. We built the embedded Linux system with Yocto. I used Yocto Morty and CMake v3.5.1 (as it comes with Ubuntu 16.04 LTS).

I am going to give a line-line by line explanation of the CMake toolchain file. As we use CMake for building our Qt application, we must create a CMake toolchain file. Next, we want to cross-compile our own Qt application. We have succeeded in building embedded Linux with Yocto for a quad-core NXP i.MX6 (ARM Cortex-A9).
