Hi Baskaran,
if you want to cross compile an application you must use Metatoolchain in Yocto. In the following link you can find a complete Yocto training and Task 7 is about this.
Yocto Training - HOME
In summary these are the steps to add metatoolchain and cross compile a simple hello world application:
$ bitbake meta-toolchain
$ sh tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.4.1.sh
$ source /opt/poky/1.4.1/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi
$ arm-poky-linux-gnueabi-gcc -v
$ arm-poky-linux-gnueabi-gcc hello.c -o hello
On the other hand, if you want to build an application natively in the iMX7 you need to add the sdk packages to the image, the simplest way may be to add to the end of your build/conf/local.conf file:
IMAGE_INSTALL-append += "\
packagegroup-sdk-target \
"
Regards,
Carlos