1. First compile the yocto toolchain using below command
bitbake meta-toolchain
or
bitbake -c do_populate_sdk your-image-name(e.g. core-image-minimal)
or
bitbake meta-toolchain-qt5
2. After successful compilation you will get “arm-poky-linux——-.sh” in deploy dir.
sh arm-poky-linux——-.sh
it will extract the toolchain and creates the sysroodir for toolchain binaries and
environment-setup-cortexa7hf-linux-gnueabi
run the env file in command line ” . environment-setup-cortexa7hf-neon-linux-gnueabi “
3. check toolchain is exported or not using command line “echo $CC”
4. helloworld.c
5. $CC helloworld.c -o hello
Now you Cross compilation is done.
NOTE: “file hello” ill give the information of binary.