Skip to content

Commit 0c8f66f

Browse files
committed
Correct supported check of uvision to include uARM
1 parent ed9a1f1 commit 0c8f66f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tools/export/uvision/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,16 @@ class Uvision(Exporter):
133133
@classmethod
134134
def is_target_supported(cls, target_name):
135135
target = TARGET_MAP[target_name]
136-
return apply_supported_whitelist(
137-
cls.TOOLCHAIN, cls.POST_BINARY_WHITELIST, target) and\
138-
DeviceCMSIS.check_supported(target_name)
136+
if not (set(target.supported_toolchains) and set(["ARM", "uARM"])):
137+
return False
138+
if not DeviceCMSIS.check_supported(target_name):
139+
return False
140+
if not hasattr(target, "post_binary_hook"):
141+
return True
142+
if target.post_binary_hook['function'] in cls.POST_BINARY_WHITELIST:
143+
return True
144+
else:
145+
return False
139146

140147
#File associations within .uvprojx file
141148
file_types = {'.cpp': 8, '.c': 1, '.s': 2,

0 commit comments

Comments
 (0)