This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e0e3d81 newt: Fix autogenerated linker include path
3e0e3d81 is described below

commit 3e0e3d819471813cc975bc9dae70202180a2cdf2
Author: Michal Gorecki <[email protected]>
AuthorDate: Tue Apr 16 15:38:44 2024 +0200

    newt: Fix autogenerated linker include path
---
 newt/pkg/bsp_package.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/newt/pkg/bsp_package.go b/newt/pkg/bsp_package.go
index 46ecb7fb..0d08d3ab 100644
--- a/newt/pkg/bsp_package.go
+++ b/newt/pkg/bsp_package.go
@@ -83,7 +83,7 @@ func (bsp *BspPackage) resolvePathSetting(
 }
 
 func (bsp *BspPackage) getAutogeneratedLinkerScriptPath() (string, error) {
-       defaultLinkerScriptPath := "bin/" + bsp.yov.Pkg.Name() + 
"/generated/link/mynewt.ld"
+       defaultLinkerScriptPath := "bin/" + bsp.yov.Pkg.FullName() + 
"/generated/link/mynewt.ld"
        proj := interfaces.GetProject()
        path, err := proj.ResolvePath(proj.Path(), defaultLinkerScriptPath)
        if err != nil {
@@ -93,7 +93,7 @@ func (bsp *BspPackage) getAutogeneratedLinkerScriptPath() 
(string, error) {
 }
 
 func (bsp *BspPackage) GetAutogeneratedLinkerIncludePath() (string, error) {
-       defaultLinkerScriptPath := "bin/" + bsp.yov.Pkg.Name() + 
"/generated/link/include"
+       defaultLinkerScriptPath := "bin/" + bsp.yov.Pkg.FullName() + 
"/generated/link/include"
        proj := interfaces.GetProject()
        path, err := proj.ResolvePath(proj.Path(), defaultLinkerScriptPath)
        if err != nil {

Reply via email to