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
InitAfter, InitBefore, ManifestVersion is kinda obvious (well i don't know which manifest version should i use, which is latest), but these are still not documented on that page i've linked.
The rest fo the keywords is rather mystery to me. Especialy i would like what are modules and how they are different from libs. What are ExtraFiles and how do i use Tests or Conds? LibsHandled and InitDeps i don't know at all what these are.
The text was updated successfully, but these errors were encountered:
Harvie
changed the title
Incomplete documentation of mos.yml
Incomplete documentation of mos.yml. What are "Modules"?
Feb 13, 2020
Modules are libraries which are not mongoose-os libraries. I.e. these are the libraries that do not have mos.yml. In other words, these are just normal C/C++ packages/libraries which do not know about mongoose-os.
Thus, if you want to use some external C library, use modules. The syntax is the same as for libs, a module should be a git repo.
You can use a module directly in your firmware, or you can create a wrapper mongoose-os library. For example, https://github.com/mongoose-os-libs/mjs is a mongoose-os library. It uses a JS engine pulled as a module - see mos.yml.
Or, you can include extra libs, or define different config params depending on conditions. A great example is a https://github.com/mongoose-os-libs/boards which is a "library" that does not have any code, but consists purely of conditions in mos.yml.
Hello,
i am looking at mos.yml format reference:
https://mongoose-os.com/docs/mongoose-os/userguide/build.md#mosyml-file-format-reference
and i am also looking at https://github.com/mongoose-os/mos/blob/master/cli/build/manifest.go
And there are several features, which deserve better documentation IMO. Eg.:
InitAfter, InitBefore, ManifestVersion
is kinda obvious (well i don't know which manifest version should i use, which is latest), but these are still not documented on that page i've linked.The rest fo the keywords is rather mystery to me. Especialy i would like what are
modules
and how they are different from libs. What areExtraFiles
and how do i useTests
orConds
?LibsHandled
andInitDeps
i don't know at all what these are.The text was updated successfully, but these errors were encountered: