@@ -49,9 +49,6 @@ def __init__(self, target, notify=None, macros=None,
49
49
extra_verbose = extra_verbose ,
50
50
build_profile = build_profile )
51
51
52
- if "ARM" not in target .supported_toolchains :
53
- raise NotSupportedException ("ARM compiler support is required for ARM build" )
54
-
55
52
if target .core == "Cortex-M0+" :
56
53
cpu = "Cortex-M0"
57
54
elif target .core == "Cortex-M4F" :
@@ -265,10 +262,26 @@ def redirect_symbol(source, sync, build_dir):
265
262
266
263
267
264
class ARM_STD (ARM ):
268
- pass
265
+ def __init__ (self , target , notify = None , macros = None ,
266
+ silent = False , extra_verbose = False , build_profile = None ,
267
+ build_dir = None ):
268
+ ARM .__init__ (self , target , notify , macros , silent ,
269
+ build_dir = build_dir , extra_verbose = extra_verbose ,
270
+ build_profile = build_profile )
271
+ if "ARM" not in target .supported_toolchains :
272
+ raise NotSupportedException ("ARM compiler support is required for ARM build" )
273
+
269
274
270
275
class ARM_MICRO (ARM ):
271
276
PATCHED_LIBRARY = False
277
+ def __init__ (self , target , notify = None , macros = None ,
278
+ silent = False , extra_verbose = False , build_profile = None ,
279
+ build_dir = None ):
280
+ ARM .__init__ (self , target , notify , macros , silent ,
281
+ build_dir = build_dir , extra_verbose = extra_verbose ,
282
+ build_profile = build_profile )
283
+ if not set (("ARM" , "uARM" )).intersection (set (target .supported_toolchains )):
284
+ raise NotSupportedException ("ARM/uARM compiler support is required for ARM build" )
272
285
273
286
class ARMC6 (ARM_STD ):
274
287
SHEBANG = "#! armclang -E --target=arm-arm-none-eabi -x c"
0 commit comments