@@ -370,7 +370,7 @@ class LPCTargetCode(object):
370
370
@staticmethod
371
371
def lpc_patch (t_self , resources , elf , binf ):
372
372
"""Patch an elf file"""
373
- t_self .debug ("LPC Patch: %s" % os .path .split (binf )[1 ])
373
+ t_self .notify . debug ("LPC Patch: %s" % os .path .split (binf )[1 ])
374
374
patch (binf )
375
375
376
376
class LPC4088Code (object ):
@@ -404,7 +404,7 @@ def binary_hook(t_self, resources, elf, binf):
404
404
# file to 'binf'
405
405
shutil .rmtree (binf , True )
406
406
os .rename (binf + '.temp' , binf )
407
- t_self .debug ("Generated custom binary file (internal flash + SPIFI)" )
407
+ t_self .notify . debug ("Generated custom binary file (internal flash + SPIFI)" )
408
408
LPCTargetCode .lpc_patch (t_self , resources , elf , binf )
409
409
410
410
class TEENSY3_1Code (object ):
@@ -471,8 +471,8 @@ def binary_hook(t_self, resources, _, binf):
471
471
in t_self .target .EXPECTED_SOFTDEVICES_WITH_OFFSETS :
472
472
for hexf in resources .hex_files :
473
473
if hexf .find (softdevice_and_offset_entry ['name' ]) != - 1 :
474
- t_self .debug ("SoftDevice file found %s."
475
- % softdevice_and_offset_entry ['name' ])
474
+ t_self .notify . debug ("SoftDevice file found %s."
475
+ % softdevice_and_offset_entry ['name' ])
476
476
sdf = hexf
477
477
478
478
if sdf is not None :
@@ -481,7 +481,7 @@ def binary_hook(t_self, resources, _, binf):
481
481
break
482
482
483
483
if sdf is None :
484
- t_self .debug ("Hex file not found. Aborting." )
484
+ t_self .notify . debug ("Hex file not found. Aborting." )
485
485
return
486
486
487
487
# Look for bootloader file that matches this soft device or bootloader
@@ -490,13 +490,13 @@ def binary_hook(t_self, resources, _, binf):
490
490
if t_self .target .MERGE_BOOTLOADER is True :
491
491
for hexf in resources .hex_files :
492
492
if hexf .find (t_self .target .OVERRIDE_BOOTLOADER_FILENAME ) != - 1 :
493
- t_self .debug ("Bootloader file found %s."
494
- % t_self .target .OVERRIDE_BOOTLOADER_FILENAME )
493
+ t_self .notify . debug ("Bootloader file found %s."
494
+ % t_self .target .OVERRIDE_BOOTLOADER_FILENAME )
495
495
blf = hexf
496
496
break
497
497
elif hexf .find (softdevice_and_offset_entry ['boot' ]) != - 1 :
498
- t_self .debug ("Bootloader file found %s."
499
- % softdevice_and_offset_entry ['boot' ])
498
+ t_self .notify . debug ("Bootloader file found %s."
499
+ % softdevice_and_offset_entry ['boot' ])
500
500
blf = hexf
501
501
break
502
502
@@ -510,13 +510,13 @@ def binary_hook(t_self, resources, _, binf):
510
510
binh .loadbin (binf , softdevice_and_offset_entry ['offset' ])
511
511
512
512
if t_self .target .MERGE_SOFT_DEVICE is True :
513
- t_self .debug ("Merge SoftDevice file %s"
514
- % softdevice_and_offset_entry ['name' ])
513
+ t_self .notify . debug ("Merge SoftDevice file %s"
514
+ % softdevice_and_offset_entry ['name' ])
515
515
sdh = IntelHex (sdf )
516
516
binh .merge (sdh )
517
517
518
518
if t_self .target .MERGE_BOOTLOADER is True and blf is not None :
519
- t_self .debug ("Merge BootLoader file %s" % blf )
519
+ t_self .notify . debug ("Merge BootLoader file %s" % blf )
520
520
blh = IntelHex (blf )
521
521
binh .merge (blh )
522
522
0 commit comments