From 544a134f590ac251fef1842a9ea288c513f7c688 Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 26 Feb 2020 14:48:23 +0800 Subject: [PATCH 1/2] [tools] Fix the lib paths not found issue. --- tools/eclipse.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/eclipse.py b/tools/eclipse.py index 0f001b8bb8..743d471241 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -22,7 +22,7 @@ from xml.etree.ElementTree import SubElement from building import * -MODULE_VER_NUM = 0 +MODULE_VER_NUM = 1 source_pattern = ['*.c', '*.cpp', '*.cxx', '*.s', '*.S', '*.asm'] @@ -301,10 +301,12 @@ def HandleToolOption(tools, env, project, reset): option = linker_paths_option # remove old lib paths for item in option.findall('listOptionValue'): - option.remove(item) + if IsRttEclipsePathFormat(item.get('value')): + # clean old configuration + option.remove(item) # add new old lib paths for path in env['LIBPATH']: - SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': path}) + SubElement(option, 'listOptionValue', {'builtIn': 'false', 'value': ConverToRttEclipsePathFormat(RelativeProjectPath(env, path).replace('\\', '/'))}) return From 5dffac8483743385ce671dd7792973431db75e8e Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 26 Feb 2020 15:22:52 +0800 Subject: [PATCH 2/2] [bsp/stm32] Add cpp lib path for eclipse project. --- bsp/stm32/stm32f103-dofly-M3S/.cproject | 1 + bsp/stm32/stm32f103-yf-ufun/.cproject | 1 + bsp/stm32/stm32f401-st-nucleo/.cproject | 1 + bsp/stm32/stm32f405-smdz-breadfruit/.cproject | 1 + bsp/stm32/stm32f407-atk-explorer/.cproject | 1 + bsp/stm32/stm32f411-st-nucleo/.cproject | 1 + bsp/stm32/stm32f429-atk-apollo/.cproject | 1 + bsp/stm32/stm32f429-fire-challenger/.cproject | 1 + bsp/stm32/stm32f767-atk-apollo/.cproject | 1 + bsp/stm32/stm32l475-atk-pandora/.cproject | 1 + 10 files changed, 10 insertions(+) diff --git a/bsp/stm32/stm32f103-dofly-M3S/.cproject b/bsp/stm32/stm32f103-dofly-M3S/.cproject index 9d9d054816..6c3e6fbbe2 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/.cproject +++ b/bsp/stm32/stm32f103-dofly-M3S/.cproject @@ -123,6 +123,7 @@