Hi zhao,
The sequence below can be used to cros compile hello.c 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
then you can copy the output file into the sdcard with Linux image and once it is running you can execute such application.
Regards,
Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------