|
23 | 23 | import sys
|
24 | 24 | from copy import copy
|
25 | 25 | from collections import namedtuple
|
26 |
| -from tools.patch import patch |
| 26 | +from tools.targets.LPC import patch |
27 | 27 | from tools.paths import TOOLS_BOOTLOADERS
|
28 | 28 | from tools.utils import json_file_to_dict
|
29 | 29 |
|
@@ -121,7 +121,7 @@ class Target(namedtuple("Target", "name json_data resolution_order resolution_or
|
121 | 121 |
|
122 | 122 | # Default location of the 'targets.json' file
|
123 | 123 | __targets_json_location_default = os.path.join(
|
124 |
| - os.path.dirname(os.path.abspath(__file__)), '..', 'targets', 'targets.json') |
| 124 | + os.path.dirname(os.path.abspath(__file__)), '..', '..', 'targets', 'targets.json') |
125 | 125 |
|
126 | 126 | # Current/new location of the 'targets.json' file
|
127 | 127 | __targets_json_location = None
|
@@ -494,7 +494,7 @@ def binary_hook(t_self, resources, _, binf):
|
494 | 494 | class NCS36510TargetCode:
|
495 | 495 | @staticmethod
|
496 | 496 | def ncs36510_addfib(t_self, resources, elf, binf):
|
497 |
| - from tools.add_fib import add_fib_at_start |
| 497 | + from tools.targets.NCS import add_fib_at_start |
498 | 498 | print("binf ", binf)
|
499 | 499 | add_fib_at_start(binf[:-4])
|
500 | 500 | ################################################################################
|
|
0 commit comments