You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/03/06 21:17:02 UTC

[28/50] [abbrv] incubator-mynewt-newt git commit: newt; add target.syscfg to build's manifest file.

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 <ma...@runtime.io>
Authored: Tue Feb 28 16:58:58 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
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",