Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JDiam3
Beginner
1,210 Views

Compiling C Files in Yocto

I'm trying to modify the "spi_xfer" executable. I assume it is compiled from this C program: https://github.com/intel-aero/sample-apps/blob/master/spidev-app/spi_xfer.c sample-apps/spi_xfer.c at master · intel-aero/sample-apps · GitHub. What is the path to these files on the compute board?

0 Kudos
2 Replies
idata
Community Manager
53 Views

Hi, Jeffrey95

 

 

Thank you for contacting Intel Customer Support.

 

Please let me look into it and I will get back to you later.

 

 

Regards,

 

Alexandra
idata
Community Manager
53 Views

Hi, Jeffrey95

 

 

spi_xfer.c is not included in the Aero image, only the binary is included on Aero. You would need to rebuild the binary with your modifications.

 

You can download and generate the image source code following the instructions here https://github.com/intel-aero/meta-intel-aero/wiki/96-(References)-Rebuild-Yocto# build https://github.com/intel-aero/meta-intel-aero/wiki/96-(References)-Rebuild-Yocto# build

 

Once that is build, you can copy the binary over to aero.

 

You can also try to compile directly on Aero but some dependency/tools may not be present.

 

 

Regards,

 

Alexandra
Reply