Skip to content

Commit c62fcd0

Browse files
cmake: New list for post build commands that should run early
New cmake list, `post_build_patch_elf_commands`, will be prepended to `post_build_commands` one, effectively making these commands to run just after the ELF is created. It's particularly useful for operations that patch the ELF generated, before other representations of it (such as .bin) are created. Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
1 parent 3551ada commit c62fcd0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,6 +2091,16 @@ if (CONFIG_BUILD_OUTPUT_VIF)
20912091
include(${CMAKE_CURRENT_LIST_DIR}/cmake/vif.cmake)
20922092
endif()
20932093

2094+
get_property(post_build_patch_elf_commands
2095+
GLOBAL PROPERTY
2096+
post_build_patch_elf_commands
2097+
)
2098+
2099+
list(PREPEND
2100+
post_build_commands
2101+
${post_build_patch_elf_commands}
2102+
)
2103+
20942104
get_property(extra_post_build_commands
20952105
GLOBAL PROPERTY
20962106
extra_post_build_commands

0 commit comments

Comments
 (0)