This is an automated email from the ASF dual-hosted git repository. ccollins pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-artifact.git
The following commit(s) were added to refs/heads/master by this push: new 85abf95 manifest: Add `MfgManifestTarget.Size` field 85abf95 is described below commit 85abf951da1d708e6b6eb45f84743b79fdd0e384 Author: Christopher Collins <ccoll...@apache.org> AuthorDate: Wed Feb 12 15:41:21 2020 -0800 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. --- manifest/mfg_manifest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest/mfg_manifest.go b/manifest/mfg_manifest.go index 1e7bcf9..10ea6e8 100644 --- a/manifest/mfg_manifest.go +++ b/manifest/mfg_manifest.go @@ -32,6 +32,7 @@ import ( type MfgManifestTarget struct { Name string `json:"name"` Offset int `json:"offset"` + Size int `json:"size"` BinPath string `json:"bin_path,omitempty"` ImagePath string `json:"image_path,omitempty"` HexPath string `json:"hex_path,omitempty"`