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
Now that I'm thinking about this a bit more, it really just makes sense to evolve my fork of projectara/manifesto.
I already have a PR for an .mnfb parser here so that would get pulled in.
The manifesto repository could just be pulled in as a git submodule of this project.
The only additional code needed would be to parse the devicetree_unfixed.h that is produced by Zephyr, populate a Manifest object with it, write the string representation of the Manifest object to build/zephyr/misc/generated and then call generate_inc_file() to produce a C header with that.
This change adds cfriedt/manifesto as a submodule of
greybus-for-zephyr at the path scripts/manifesto/.
It removes a lot of unecessary code that was used for
assembling the manifest at runtime.
Rather than using C code and consuming microcontroller RAM
and resources at runtime, we can now link in the Greybus
Manifest into ROM as a static const unsigned char[].
Fixes#30
Signed-off-by: Christopher Friedt <[email protected]>
This change adds cfriedt/manifesto as a submodule of
greybus-for-zephyr at the path scripts/manifesto/.
It removes a lot of unecessary code that was used for
assembling the manifest at runtime.
Rather than using C code and consuming microcontroller RAM
and resources at runtime, we can now link in the Greybus
Manifest into ROM as a static const unsigned char[].
Fixes#30
Signed-off-by: Christopher Friedt <[email protected]>
It was originally unclear how to generate code (from say, a binary file) and include it as a C array before.
The correct cmake function to use is here and is called
generate_inc_file
.We will also need to create a function (along with a python script) to convert the flattened
.dts
to a.mnfs
file.Once that is done, we can convert the
.mnfs
to a.mnfb
, and callgenerate_inc_file
to include the binary.mnfb
directly in C.The text was updated successfully, but these errors were encountered: