@@ -740,10 +740,10 @@ def link_program(self, r, tmp_path, name):
740
740
# Absolute path of the final linked file
741
741
if self .config .has_regions :
742
742
elf = join (new_path , tail + '_application.elf' )
743
- mapfile = join (tmp_path , tail + '_application.map' )
743
+ mapfile = join (new_path , tail + '_application.map' )
744
744
else :
745
- elf = join (tmp_path , tail + '.elf' )
746
- mapfile = join (tmp_path , tail + '.map' )
745
+ elf = join (new_path , tail + '.elf' )
746
+ mapfile = join (new_path , tail + '.map' )
747
747
748
748
objects = sorted (set (r .get_file_paths (FileType .OBJECT )))
749
749
config_file = ([self .config .app_config_location ]
@@ -779,7 +779,7 @@ def link_program(self, r, tmp_path, name):
779
779
filename = "{}_application.{}" .format (tail , ext )
780
780
else :
781
781
filename = "{}.{}" .format (tail , ext )
782
- full_path = join (tmp_path , filename )
782
+ full_path = join (new_path , filename )
783
783
if ext != 'elf' :
784
784
if full_path and self .need_update (full_path , [elf ]):
785
785
self .progress ("elf2bin" , tail )
0 commit comments