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/2752197f Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/2752197f Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/2752197f Branch: refs/heads/master Commit: 2752197f7e179df944df58254e8d31154979a8e7 Parents: 1a50286 Author: Marko Kiiskila <[email protected]> Authored: Tue Feb 28 16:58:58 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Tue Feb 28 16:58:58 2017 -0800 ---------------------------------------------------------------------- newt/builder/targetbuild.go | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/2752197f/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",
