Skip to content

Commit 6ee9b16

Browse files
committed
Reintroduce mts_dot combine_bins.
1 parent 4229312 commit 6ee9b16

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tools/targets/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,21 @@ def _combine_bins_helper(target_name, binf):
500500
os.remove(binf)
501501
os.rename(target, binf)
502502

503+
@staticmethod
504+
def combine_bins_mts_dot(t_self, resources, elf, binf):
505+
"""A hook for the MTS MDOT"""
506+
MTSCode._combine_bins_helper("MTS_MDOT_F411RE", binf)
507+
503508
@staticmethod
504509
def combine_bins_mts_dragonfly(t_self, resources, elf, binf):
505510
"""A hoof for the MTS Dragonfly"""
506511
MTSCode._combine_bins_helper("MTS_DRAGONFLY_F411RE", binf)
507512

513+
@staticmethod
514+
def combine_bins_mtb_mts_dragonfly(t_self, resources, elf, binf):
515+
"""A hook for the MTB MTS Dragonfly"""
516+
MTSCode._combine_bins_helper("MTB_MTS_DRAGONFLY", binf)
517+
508518

509519
class LPC4088Code(object):
510520
"""Code specific to the LPC4088"""
@@ -621,6 +631,14 @@ def binary_hook(t_self, resources, _, binf):
621631
binh.write_hex_file(fileout, write_start_addr=False)
622632

623633

634+
class NCS36510TargetCode(object):
635+
@staticmethod
636+
def ncs36510_addfib(t_self, resources, elf, binf):
637+
from tools.targets.NCS import add_fib_at_start
638+
print("binf ", binf)
639+
add_fib_at_start(binf[:-4])
640+
641+
624642
class RTL8195ACode(object):
625643
"""RTL8195A Hooks"""
626644
@staticmethod

0 commit comments

Comments
 (0)