Skip to content

Commit

Permalink
newt: Fix mfg crash with generated linker scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
m-gorecki committed Sep 8, 2024
1 parent 15c4ac6 commit c7afc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newt/pkg/bsp_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (bsp *BspPackage) resolveLinkerScriptSetting(
if len(vals) > 1 {
return nil, util.NewNewtError("Both autogenerated and custom linker scripts cannot be used. " +
"Newt handles either autogenerated linker script or a list of custom linker scripts.")
} else {
} else if bsp.yov != nil {
path, err := bsp.getAutogeneratedLinkerScriptPath()
if err != nil {
return nil, util.PreNewtError(err,
Expand Down

0 comments on commit c7afc5f

Please sign in to comment.