Skip to content

Commit 98a7bfc

Browse files
committed
Define filename when OUTPUT_EXT is elf
1 parent 9c9e059 commit 98a7bfc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/toolchains/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,11 @@ def link_program(self, r, tmp_path, name):
677677
self.progress("link", name)
678678
self.link(elf, objects, libraries, lib_dirs, linker_script)
679679

680+
if self.config.has_regions:
681+
filename = "{}_application.{}".format(name, ext)
682+
else:
683+
filename = "{}.{}".format(name, ext)
680684
if ext != 'elf':
681-
if self.config.has_regions:
682-
filename = "{}_application.{}".format(name, ext)
683-
else:
684-
filename = "{}.{}".format(name, ext)
685685
full_path = join(tmp_path, filename)
686686
if full_path and self.need_update(full_path, [elf]):
687687
self.progress("elf2bin", name)

0 commit comments

Comments
 (0)