Spisvc.mdef legato-16.10.4 fails to bundle


#1

There is a problem bundling the spisvc.ko file once it is built the following patch fixes this i am moving away from 16.10 to 18 and have removed building spisvc as part of the kernel and building it as a mdef.

diff --git a/framework/tools/mkTools/buildScriptGenerator/moduleBuildScript.cpp b/framework/tools/mkTools/buildScriptGenerator/moduleBuildScript.cpp
index 0bc0073..c725209 100644
--- a/framework/tools/mkTools/buildScriptGenerator/moduleBuildScript.cpp
+++ b/framework/tools/mkTools/buildScriptGenerator/moduleBuildScript.cpp
@@ -53,7 +53,7 @@ void GenerateBuildStatements
 {
     // Add build statement for copying the .ko file
     script << "build " << "$builddir/" << modulePtr->objFilePtr->path << ": "
-           << "CopyF " << modulePtr->path << "\n"
+           << "CopyFile " << modulePtr->path << "\n"
            << "  modeFlags = u+rw-x,g+r-wx,o+r-wx\n"
            "\n";
 }

To get it loaded before spiService is started i simply added a insmod to the startlegato init.d file before $LEGATO_START this is not a problem on 18.02 and reported elsewhere on the forum.

if [ -e /mnt/legato/system/modules/spisvc.ko ];then
/sbin/insmod /mnt/legato/system/modules/spisvc.ko
fi;