@@ -193,7 +193,7 @@ def init_hooks(self, hook, toolchain_name):
193
193
hook .hook_add_binary ("post" , self .binary_hook )
194
194
195
195
@staticmethod
196
- def binary_hook (t_self , resources , elf , binf ):
196
+ def binary_hook (t_self , elf , binf ):
197
197
if not os .path .isdir (binf ):
198
198
# Regular binary file, nothing to do
199
199
return
@@ -266,6 +266,8 @@ def __init__(self):
266
266
267
267
268
268
class NUCLEO_F103RB (Target ):
269
+ OUTPUT_NAMING = "8.3"
270
+
269
271
def __init__ (self ):
270
272
Target .__init__ (self )
271
273
@@ -274,11 +276,11 @@ def __init__(self):
274
276
self .extra_labels = ['STM' , 'STM32F1' , 'STM32F103RB' ]
275
277
276
278
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
277
-
278
- self .binary_naming = "8.3"
279
279
280
280
281
281
class NUCLEO_L152RE (Target ):
282
+ OUTPUT_NAMING = "8.3"
283
+
282
284
def __init__ (self ):
283
285
Target .__init__ (self )
284
286
@@ -287,11 +289,11 @@ def __init__(self):
287
289
self .extra_labels = ['STM' , 'STM32L1' , 'STM32L152RE' ]
288
290
289
291
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
290
-
291
- self .binary_naming = "8.3"
292
292
293
293
294
294
class NUCLEO_F401RE (Target ):
295
+ OUTPUT_NAMING = "8.3"
296
+
295
297
def __init__ (self ):
296
298
Target .__init__ (self )
297
299
@@ -300,11 +302,11 @@ def __init__(self):
300
302
self .extra_labels = ['STM' , 'STM32F4' , 'STM32F401RE' ]
301
303
302
304
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
303
-
304
- self .binary_naming = "8.3"
305
305
306
306
307
307
class NUCLEO_F030R8 (Target ):
308
+ OUTPUT_NAMING = "8.3"
309
+
308
310
def __init__ (self ):
309
311
Target .__init__ (self )
310
312
@@ -313,8 +315,6 @@ def __init__(self):
313
315
self .extra_labels = ['STM' , 'STM32F0' , 'STM32F030R8' ]
314
316
315
317
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
316
-
317
- self .binary_naming = "8.3"
318
318
319
319
320
320
class LPC1347 (Target ):
@@ -393,8 +393,8 @@ def init_hooks(self, hook, toolchain_name):
393
393
hook .hook_add_binary ("post" , self .binary_hook )
394
394
395
395
@staticmethod
396
- def binary_hook (t_self , resources , elf , binf ):
397
- for hexf in resources .hex_files :
396
+ def binary_hook (t_self , elf , binf ):
397
+ for hexf in t_self . resources .hex_files :
398
398
if hexf .find (NRF51822 .EXPECTED_SOFTDEVICE ) != - 1 :
399
399
break
400
400
else :
0 commit comments