This message was posted on behalf of Intel Corporation
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
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.