Correct supported check of uvision to include uARM

pull/7197/head
Jimmy Brisson 2018-06-12 09:28:43 -05:00
parent ed9a1f1327
commit 0c8f66f87b
1 changed files with 10 additions and 3 deletions

View File

@ -133,9 +133,16 @@ class Uvision(Exporter):
@classmethod
def is_target_supported(cls, target_name):
target = TARGET_MAP[target_name]
return apply_supported_whitelist(
cls.TOOLCHAIN, cls.POST_BINARY_WHITELIST, target) and\
DeviceCMSIS.check_supported(target_name)
if not (set(target.supported_toolchains) and set(["ARM", "uARM"])):
return False
if not DeviceCMSIS.check_supported(target_name):
return False
if not hasattr(target, "post_binary_hook"):
return True
if target.post_binary_hook['function'] in cls.POST_BINARY_WHITELIST:
return True
else:
return False
#File associations within .uvprojx file
file_types = {'.cpp': 8, '.c': 1, '.s': 2,