Skip to content

Commit 90c261a

Browse files
committed
Merge branch 'master' of https://github.com/mbedmicro/mbed
2 parents e9394fc + 17499c3 commit 90c261a

File tree

3 files changed

+3
-138
lines changed

3 files changed

+3
-138
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_msp_template.c

Lines changed: 0 additions & 133 deletions
This file was deleted.

workspace_tools/build_api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ def build_library(src_paths, build_path, target, toolchain_name,
116116
toolchain.copy_files(resource.headers, build_path, rel_path=resource.base_path)
117117
dependencies_include_dir.extend(toolchain.scan_resources(build_path).inc_dirs)
118118

119-
toolchain.resources = resources
120-
121119
# Compile Sources
122120
objects = []
123121
for resource in resources:

workspace_tools/targets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def init_hooks(self, hook, toolchain_name):
193193
hook.hook_add_binary("post", self.binary_hook)
194194

195195
@staticmethod
196-
def binary_hook(t_self, elf, binf):
196+
def binary_hook(t_self, resources, elf, binf):
197197
if not os.path.isdir(binf):
198198
# Regular binary file, nothing to do
199199
return
@@ -393,8 +393,8 @@ def init_hooks(self, hook, toolchain_name):
393393
hook.hook_add_binary("post", self.binary_hook)
394394

395395
@staticmethod
396-
def binary_hook(t_self, elf, binf):
397-
for hexf in t_self.resources.hex_files:
396+
def binary_hook(t_self, resources, elf, binf):
397+
for hexf in resources.hex_files:
398398
if hexf.find(NRF51822.EXPECTED_SOFTDEVICE) != -1:
399399
break
400400
else:

0 commit comments

Comments
 (0)