Skip to content

Commit c4aaea9

Browse files
committed
Move post build hook execution after objcopy
Post build hook execution seems incorrectly positioned at pre-link time as reported in the issue a9183756-gh#35. Fix is to move it after the objcopy.
1 parent ae4033c commit c4aaea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Arduino/System/BoardToolchain.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,15 @@ function (SetupBoardToolchain boards_namespace board_id generate_dir)
338338
"^recipe\\.hooks\\.core\\.postbuild\\.[0-9]+\\.pattern$"
339339
"^recipe\\.hooks\\.libraries\\.postbuild\\.[0-9]+\\.pattern$"
340340
"^recipe\\.hooks\\.sketch\\.postbuild\\.[0-9]+\\.pattern$"
341-
"^recipe\\.hooks\\.postbuild\\.[0-9]+\\.pattern$"
342341
"^recipe\\.hooks\\.linking\\.prelink\\.[0-9]+\\.pattern$")
343342
set(_link_pattern "^recipe\\.c\\.combine\\.pattern$")
344343
set(_postbuild_pattern_list
345344
"^recipe\\.hooks\\.linking\\.postlink\\.[0-9]+\\.pattern$")
346345
set(_objcopy_pattern_list
347346
"^recipe\\.hooks\\.objcopy\\.preobjcopy\\.[0-9]+\\.pattern$"
348347
"^recipe\\.objcopy\\..*\\.pattern$"
349-
"^recipe\\.hooks\\.objcopy\\.postobjcopy\\.[0-9]+\\.pattern$")
348+
"^recipe\\.hooks\\.objcopy\\.postobjcopy\\.[0-9]+\\.pattern$"
349+
"^recipe\\.hooks\\.postbuild\\.[0-9]+\\.pattern$")
350350
#_board_find_gen_file_list("${_gen_file_list}" _gen_file_list
351351
# ${_prelink_pattern_list} ${_link_pattern} ${_postbuild_pattern_list}
352352
# ${_objcopy_pattern_list})

0 commit comments

Comments
 (0)