Please refer to:
Setting up cross compilation
At the end of the setup steps, it gives instructions to build a hello world. The sample code and make files are in sub-directory examples/cross_compile.
Please refer to:
Setting up cross compilation
At the end of the setup steps, it gives instructions to build a hello world. The sample code and make files are in sub-directory examples/cross_compile.