From 84ebead9c9f86edad60eb1d1e4255001d20aa4f8 Mon Sep 17 00:00:00 2001 From: guo Date: Mon, 21 Mar 2022 08:29:31 +0800 Subject: [PATCH] [tools] allow users to set specific link scripts. (#5678) --- tools/eclipse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/eclipse.py b/tools/eclipse.py index 736fcbc66d..31c1bb914b 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -291,7 +291,8 @@ def HandleToolOption(tools, env, project, reset): listOptionValue = option.find('listOptionValue') if listOptionValue != None: - listOptionValue.set('value', linker_script) + if reset is True or IsRttEclipsePathFormat(listOptionValue.get('value')): + listOptionValue.set('value', linker_script) else: SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': linker_script}) # scriptfile in stm32cubeIDE