[patch] Passing a file name with extension to cross compiler with -o causes error
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
When passing an executable name such as project1.elf to an embedded compiler with the -o option, it results in an error: "Can't open executable project1.elf.elf"
The error seem to be caused by appending .elf to the exe file name when calling PostProcessExecutable in TlinkerEmbedded.MakeExecutable.
Attached a patch which fixes the inconsistent exe file name in MakeExecutable. Since the exe file name is used in several places, I created a new variable FixedExeFileName where the file extension is changed properly. This variable is then used throughout this procedure to ensure consistency in the file name.
Mantis conversion info:
- Mantis ID: 36562
- Build: 43920
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43921 (#9926eb8d)