File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,16 @@ class Uvision(Exporter):
133
133
@classmethod
134
134
def is_target_supported (cls , target_name ):
135
135
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
139
146
140
147
#File associations within .uvprojx file
141
148
file_types = {'.cpp' : 8 , '.c' : 1 , '.s' : 2 ,
You can’t perform that action at this time.
0 commit comments