mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject incubator-mynewt-newt git commit: If egg declares LIBC identity, add it as a dependency to all eggs.
Date Tue, 24 Nov 2015 17:32:18 GMT
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master e95057f45 -> af82e569c


If egg declares LIBC identity, add it as a dependency to all
eggs.


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/af82e569
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/af82e569
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/af82e569

Branch: refs/heads/master
Commit: af82e569cef226f84112f1d018e3c902ffad4023
Parents: e95057f
Author: Marko Kiiskila <marko@runtime.io>
Authored: Tue Nov 24 09:31:44 2015 -0800
Committer: Marko Kiiskila <marko@runtime.io>
Committed: Tue Nov 24 09:31:44 2015 -0800

----------------------------------------------------------------------
 newt/cli/egg.go | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/af82e569/newt/cli/egg.go
----------------------------------------------------------------------
diff --git a/newt/cli/egg.go b/newt/cli/egg.go
index 0758a51..70e6e3b 100644
--- a/newt/cli/egg.go
+++ b/newt/cli/egg.go
@@ -588,6 +588,15 @@ func (egg *Egg) LoadDependencies(identities map[string]string,
 		egg.Deps = append(egg.Deps, dr)
 	}
 
+	eggName := identities["LIBC"]
+	if eggName != "" {
+		dr, err := NewDependencyRequirementParseString(eggName)
+		if err != nil {
+			return err
+		}
+		egg.Deps = append(egg.Deps, dr)
+	}
+
 	// Check these as well
 	egg.LinkerScript = GetStringIdentities(v, identities, "egg.linkerscript")
 	egg.DownloadScript = GetStringIdentities(v, identities, "egg.downloadscript")


Mime
View raw message