summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-12-10 20:58:55 +0800
committerGitHub <[email protected]>2019-12-10 20:58:55 +0800
commit3dcc7a6487d511adf8b7e99b11aa16512021981d (patch)
tree387d60774b257122c91bec685c950798b6b41ff4
parent500b5498d0bfe8160b3f6ba9086a87165e4af1cb (diff)
parent9aa3b58bae6928e3c58ecba5295f0302ca71ba9e (diff)
Merge pull request #3253 from armink/fix_eclipse
[tools] remove unused path when using scons target eclipse.
-rw-r--r--tools/eclipse.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py
index daac72befe..253db37bea 100644
--- a/tools/eclipse.py
+++ b/tools/eclipse.py
@@ -336,6 +336,11 @@ def GenExcluding(env, project):
coll_dirs = CollectPaths(project['DIRS'])
all_paths = [OSPath(path) for path in coll_dirs]
+ # remove unused path
+ for path in all_paths:
+ if not path.startswith(rtt_root) and not path.startswith(bsp_root):
+ all_paths.remove(path)
+
if bsp_root.startswith(rtt_root):
# bsp folder is in the RT-Thread root folder, such as the RT-Thread source code on GitHub
exclude_paths = ExcludePaths(rtt_root, all_paths)