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 2015/11/24 18:32:18 UTC

incubator-mynewt-newt git commit: If egg declares LIBC identity, add it as a dependency to all eggs.

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 <ma...@runtime.io>
Authored: Tue Nov 24 09:31:44 2015 -0800
Committer: Marko Kiiskila <ma...@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")