Skip to content

Commit 84ebead

Browse files
authored
[tools] allow users to set specific link scripts. (#5678)
1 parent bb4fc9c commit 84ebead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/eclipse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def HandleToolOption(tools, env, project, reset):
291291

292292
listOptionValue = option.find('listOptionValue')
293293
if listOptionValue != None:
294-
listOptionValue.set('value', linker_script)
294+
if reset is True or IsRttEclipsePathFormat(listOptionValue.get('value')):
295+
listOptionValue.set('value', linker_script)
295296
else:
296297
SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': linker_script})
297298
# scriptfile in stm32cubeIDE

0 commit comments

Comments
 (0)