Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 8b84facab -> 205009dff


MYNEWT-535 newt - Include tgt name in img manifest


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/205009df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/205009df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/205009df

Branch: refs/heads/develop
Commit: 205009dff30fa12e592d652f5271a197d7ac67a0
Parents: 8b84fac
Author: Christopher Collins <[email protected]>
Authored: Wed Jan 4 11:38:25 2017 -0800
Committer: Christopher Collins <[email protected]>
Committed: Wed Jan 4 11:38:25 2017 -0800

----------------------------------------------------------------------
 newt/builder/targetbuild.go | 1 +
 newt/image/image.go         | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/205009df/newt/builder/targetbuild.go
----------------------------------------------------------------------
diff --git a/newt/builder/targetbuild.go b/newt/builder/targetbuild.go
index 9579bed..db6172c 100644
--- a/newt/builder/targetbuild.go
+++ b/newt/builder/targetbuild.go
@@ -558,6 +558,7 @@ func readManifest(path string) (*image.ImageManifest, 
error) {
 func (t *TargetBuilder) createManifest() error {
        manifest := &image.ImageManifest{
                Date: time.Now().Format(time.RFC3339),
+               Name: t.GetTarget().FullName(),
        }
 
        rm := image.NewRepoManager()

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/205009df/newt/image/image.go
----------------------------------------------------------------------
diff --git a/newt/image/image.go b/newt/image/image.go
index 41dd20e..013ddcc 100644
--- a/newt/image/image.go
+++ b/newt/image/image.go
@@ -116,6 +116,7 @@ const (
  * Data that's going to go to build manifest file
  */
 type ImageManifest struct {
+       Name       string              `json:"name"`
        Date       string              `json:"build_time"`
        Version    string              `json:"build_version"`
        BuildID    string              `json:"id"`

Reply via email to