You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/10/21 16:37:49 UTC
[mynewt-artifact] 02/02: New mfg manifest fields: target.extra,
raw.extra
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
commit b688b2c0ae796ab1dade84e8a1d603ac71f64aa1
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Oct 18 16:59:07 2019 -0700
New mfg manifest fields: target.extra, raw.extra
Add a new field to the `target` and `raw` mfg manifest items:
`extra_manifest`. This field is a generic map that gets passed through
from the mfg definition. This field is useful if the user needs to
convey additional information to some system that knows how to parse a
manufacturing manifest file.
---
manifest/mfg_manifest.go | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/manifest/mfg_manifest.go b/manifest/mfg_manifest.go
index 6687f9a..0509f1a 100644
--- a/manifest/mfg_manifest.go
+++ b/manifest/mfg_manifest.go
@@ -30,18 +30,20 @@ import (
)
type MfgManifestTarget struct {
- Name string `json:"name"`
- Offset int `json:"offset"`
- BinPath string `json:"bin_path,omitempty"`
- ImagePath string `json:"image_path,omitempty"`
- HexPath string `json:"hex_path,omitempty"`
- ManifestPath string `json:"manifest_path"`
+ Name string `json:"name"`
+ Offset int `json:"offset"`
+ BinPath string `json:"bin_path,omitempty"`
+ ImagePath string `json:"image_path,omitempty"`
+ HexPath string `json:"hex_path,omitempty"`
+ ManifestPath string `json:"manifest_path"`
+ Extra map[string]interface{} `json:"extra,omitempty"`
}
type MfgManifestRaw struct {
- Filename string `json:"filename"`
- Offset int `json:"offset"`
- BinPath string `json:"bin_path"`
+ Filename string `json:"filename"`
+ Offset int `json:"offset"`
+ BinPath string `json:"bin_path"`
+ Extra map[string]interface{} `json:"extra,omitempty"`
}
type MfgManifestMetaMmr struct {