newt; add target.syscfg to build's manifest file.
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/52d031e7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/52d031e7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/52d031e7 Branch: refs/heads/mynewt_1_0_0 Commit: 52d031e7fa37c29074816430bde5d1641b932a20 Parents: af2b279 Author: Marko Kiiskila <[email protected]> Authored: Tue Feb 28 16:58:58 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Mon Mar 6 13:37:10 2017 -0800 ---------------------------------------------------------------------- newt/builder/targetbuild.go | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/52d031e7/newt/builder/targetbuild.go ---------------------------------------------------------------------- diff --git a/newt/builder/targetbuild.go b/newt/builder/targetbuild.go index f6bc2f6..2576764 100644 --- a/newt/builder/targetbuild.go +++ b/newt/builder/targetbuild.go @@ -570,6 +570,13 @@ func (t *TargetBuilder) createManifest() error { for _, k := range keys { manifest.TgtVars = append(manifest.TgtVars, k+"="+vars[k]) } + syscfgKV := t.GetTarget().Package().SyscfgV.GetStringMapString("syscfg.vals") + if len(syscfgKV) > 0 { + tgtSyscfg := fmt.Sprintf("target.syscfg=%s", + syscfg.KeyValueToStr(syscfgKV)) + manifest.TgtVars = append(manifest.TgtVars, tgtSyscfg) + } + file, err := os.Create(t.AppBuilder.ManifestPath()) if err != nil { return util.FmtNewtError("Cannot create manifest file %s: %s",
