Cleanup legacy target+toolchain consts

pull/7183/head
Jimmy Brisson 2018-06-11 10:47:36 -05:00
parent 8dab7417ae
commit 786c228958
1 changed files with 23 additions and 6 deletions

View File

@ -46,10 +46,28 @@ from ..toolchains import TOOLCHAINS
# standard labels for the "TARGET_" and "TOOLCHAIN_" specific directories, but
# had the knowledge of a list of these directories to be ignored.
LEGACY_IGNORE_DIRS = set([
'LPC11U24', 'LPC1768', 'LPC2368', 'LPC4088', 'LPC812', 'KL25Z',
'ARM', 'uARM', 'IAR',
'GCC_ARM', 'GCC_CS', 'GCC_CR', 'GCC_CW', 'GCC_CW_EWL', 'GCC_CW_NEWLIB',
'ARMC6'
# Legacy Targets
'LPC11U24',
'LPC1768',
'LPC2368',
'LPC4088',
'LPC812',
'KL25Z',
# Legacy Toolchains
'ARM',
'uARM',
'IAR',
'GCC_ARM',
'GCC_CS',
'GCC_CR',
'GCC_CW',
'GCC_CW_EWL',
'GCC_CW_NEWLIB',
'ARMC6',
# Tests, here for simplicity
'TESTS',
])
LEGACY_TOOLCHAIN_NAMES = {
'ARM_STD':'ARM',
@ -378,8 +396,7 @@ class Resources(object):
self.ignore_dir(dir_path)
dirs.remove(d)
elif ((d.startswith('.') or d in self.legacy_ignore_dirs) or
self.is_ignored(join(relpath(root, base_path), d,"")) or
(d == 'TESTS')):
self.is_ignored(join(relpath(root, base_path), d,""))):
self.ignore_dir(dir_path)
dirs.remove(d)
elif exclude_paths: