You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/03/06 20:04:34 UTC
incubator-mynewt-newt git commit: interim commit to synch up
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/rename_project_app 653e2697c -> 221121062
interim commit to synch up
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/22112106
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/22112106
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/22112106
Branch: refs/heads/rename_project_app
Commit: 22112106276524fd1ad8be9161eb5439648af84d
Parents: 653e269
Author: Sterling Hughes <st...@apache.org>
Authored: Sun Mar 6 11:04:12 2016 -0800
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Mar 6 11:04:12 2016 -0800
----------------------------------------------------------------------
newt/builder/build.go | 19 ++++++++++++++++++-
newt/target/target.go | 8 +++++---
2 files changed, 23 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/22112106/newt/builder/build.go
----------------------------------------------------------------------
diff --git a/newt/builder/build.go b/newt/builder/build.go
index 6555bca..97d3b13 100644
--- a/newt/builder/build.go
+++ b/newt/builder/build.go
@@ -19,7 +19,10 @@
package builder
-import "mynewt.apache.org/newt/newt/pkg"
+import (
+ "mynewt.apache.org/newt/newt/pkg"
+ "mynewt.apache.org/newt/newt/target"
+)
type CompilerInfo struct {
Includes []string
@@ -37,8 +40,22 @@ type BuildPackage struct {
type Builder struct {
Packages []*BuildPackage
+
+ target *target.Target
}
func (b *Builder) Init(target *target.Target) error {
+ b.target = target
+
+ return nil
+}
+
+func NewBuilder(target *target.Target) (*Builder, error) {
+ b := &Builder{}
+
+ if err := b.Init(target); err != nil {
+ return nil, err
+ }
+ return b, nil
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/22112106/newt/target/target.go
----------------------------------------------------------------------
diff --git a/newt/target/target.go b/newt/target/target.go
index bd4e521..42b8a13 100644
--- a/newt/target/target.go
+++ b/newt/target/target.go
@@ -17,9 +17,11 @@
* under the License.
*/
-package builder
+package target
type Target struct {
- Bsp string
- App string
+ Bsp string
+ App string
+ Arch string
+ Compiler string
}