Browse Source

[tools] allow users to set specific link scripts. (#5678)

guo 3 years ago
parent
commit
84ebead9c9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/eclipse.py

+ 2 - 1
tools/eclipse.py

@@ -291,7 +291,8 @@ def HandleToolOption(tools, env, project, reset):
 
 
         listOptionValue = option.find('listOptionValue')
         listOptionValue = option.find('listOptionValue')
         if listOptionValue != None:
         if listOptionValue != None:
-            listOptionValue.set('value', linker_script)
+            if reset is True or IsRttEclipsePathFormat(listOptionValue.get('value')):
+                listOptionValue.set('value', linker_script)
         else:
         else:
             SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': linker_script})
             SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': linker_script})
     # scriptfile in stm32cubeIDE
     # scriptfile in stm32cubeIDE