I had did a work around to overcome the above error in the following Makefile
I had commented out the spisvc.ko to not to build.
How ever at the end of the build, the build system fails to copy the kernel module as it was not build. Below is the error message
| find: ‘/home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/legato-af/build/wp76xx/system/modules//.ko’: No such file or directory
| cp: missing file operand
| Try ‘cp --help’ for more information.
| ninja: build stopped: subcommand failed.
| Makefile:518: recipe for target ‘system_wp76xx’ failed
| make: *** [system_wp76xx] Error 1
| WARNING: /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do_compile.21174:1 exit 2 from ‘make $LEGATO_TARGET’
| ERROR: Function failed: do_compile (log file is located at /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.21174)
ERROR: Task (/home/stirulaka/work/mttm/yocto/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb:do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 1400 tasks of which 1399 didn’t need to be rerun and 1 failed.
Summary: 1 task failed:
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Makefile:217: recipe for target ‘image_bin’ failed
Looks like I am close to overcome this build issue . Is some one faced this issue earlier ?
Any inputs are greatly appreciated.