Skip to content

Commit 6d7089e

Browse files
Review changes
1 parent 65d6015 commit 6d7089e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/toolchains/mbed_toolchain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,10 @@ def link_program(self, r, tmp_path, name):
740740
# Absolute path of the final linked file
741741
if self.config.has_regions:
742742
elf = join(new_path, tail + '_application.elf')
743-
mapfile = join(tmp_path, tail + '_application.map')
743+
mapfile = join(new_path, tail + '_application.map')
744744
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')
747747

748748
objects = sorted(set(r.get_file_paths(FileType.OBJECT)))
749749
config_file = ([self.config.app_config_location]
@@ -779,7 +779,7 @@ def link_program(self, r, tmp_path, name):
779779
filename = "{}_application.{}".format(tail, ext)
780780
else:
781781
filename = "{}.{}".format(tail, ext)
782-
full_path = join(tmp_path, filename)
782+
full_path = join(new_path, filename)
783783
if ext != 'elf':
784784
if full_path and self.need_update(full_path, [elf]):
785785
self.progress("elf2bin", tail)

0 commit comments

Comments
 (0)