You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This one will include the libsketch.h and basically is the replacement of main.cpp
366
392
// the sketch.ino contains the following:
367
393
sketchFile:=`#include <`+"lib"+sketchName+`.h>
@@ -373,13 +399,20 @@ void loop() {
373
399
}`
374
400
sketchFilePath:=sketchDir.Join(sketchName+".ino")
375
401
createFile(sketchFilePath, sketchFile)
402
+
returnsketchFilePath
403
+
}
376
404
405
+
// createReadmeMdFile is a helper function that is reposnible for the generation of the README.md file containing informations on how to reproduce the build environment
406
+
// it takes the resultJson and some paths.Paths as input to do the required calculations.. The name of the arguments should be sufficient to understand
//create the README.md file containig instructions regarding what commands to run in order to have again a working binary
389
422
// the README.md contains the following:
390
423
readmeMd:=`This package contains firmware code loaded in your product.
391
-
The firmware contains additional code licensed with LGPL clause; in order to re-compile the entire firmware bundle, please execute the following.
392
-
393
-
## Install core and libraries
394
-
`+strings.Join(readmeContent, "\n") +"\n"+`
395
-
## Compile
396
-
`+readmeCompile+"\n"
424
+
The firmware contains additional code licensed with LGPL clause; in order to re-compile the entire firmware bundle, please execute the following.
425
+
426
+
## Install core and libraries
427
+
`+strings.Join(readmeContent, "\n") +"\n"+`
428
+
## Compile
429
+
`+readmeCompile+"\n"
397
430
398
431
readmeMdPath:=rootDir.Join("README.md")
399
432
createFile(readmeMdPath, readmeMd)
433
+
}
400
434
401
-
// run gcc-ar to create an archive containing all the object files except the main.cpp.o (we don't need it because we have created a substitute of it before ⬆️)
435
+
// createArchiveFile function will run `gcc-ar` to create an archive containing all the object files except the main.cpp.o (we don't need it because we have created a substitute of it before: sketchfile.ino)
0 commit comments