newt; fix build of native targets

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

Branch: refs/heads/develop
Commit: 517073668c573c62139c5b52fcd6a7d268e02b69
Parents: 22305a3
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Nov 7 11:32:05 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Nov 7 11:32:05 2016 -0800

----------------------------------------------------------------------
 newt/pkg/bsp_package.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/51707366/newt/pkg/bsp_package.go
----------------------------------------------------------------------
diff --git a/newt/pkg/bsp_package.go b/newt/pkg/bsp_package.go
index d89149b..c7bbdbb 100644
--- a/newt/pkg/bsp_package.go
+++ b/newt/pkg/bsp_package.go
@@ -47,7 +47,9 @@ func (bsp *BspPackage) resolvePathSetting(
        features map[string]bool, key string) (string, error) {
 
        outVal := newtutil.GetStringFeatures(bsp.BspV, features, key)
-
+       if outVal == "" {
+               return "", nil
+       }
        proj := interfaces.GetProject()
        path, err := proj.ResolvePath(bsp.BasePath(), outVal)
        if err != nil {

Reply via email to