manifest: Add `MfgManifestTarget.Size` field

This field indicates the size of the target binary (either .bin or .img
file).  This is useful for splitting an mfgimage into its constituent
parts.  Without this change, the only method of doing this is to use a
heuristic: remove all 0xff bytes from the end of each part (this is what
`imgmod mfg split` does).  However, this leads to problems if a target
or raw entry happens to contain trailing 0xff bytes.
1 file changed
tree: 6696af14fb3d35cf262ced481ea0df5f660350ff
  1. errors/
  2. flash/
  3. image/
  4. manifest/
  5. mfg/
  6. sec/
  7. .gitignore
  8. .travis.yml
  9. go.mod
  10. go.sum
  11. LICENSE
  12. NOTICE
  13. README.md
README.md

Mynewt Artifact

Apache Mynewt Artifact is a Go library that parses, manipulates, validates, and outputs Mynewt artifacts. Supported artifacts are:

  • Images
  • Image manifests
  • Manufacturing images (mfgimages)
  • Manufacturing manifests