build: do not rename elf file, copy it
We break dependency if we rename the zephyr.elf file, we should keep it as it is an essential dependency in the build system. Instead, copy the file. Fixes #10639 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
917dd83e8b
commit
951393f659
|
@ -1220,7 +1220,7 @@ list_append_ifdef(
|
|||
list_append_ifdef(
|
||||
CONFIG_BUILD_OUTPUT_EXE
|
||||
post_build_commands
|
||||
COMMAND ${CMAKE_COMMAND} -E rename ${KERNEL_ELF_NAME} ${KERNEL_EXE_NAME}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${KERNEL_ELF_NAME} ${KERNEL_EXE_NAME}
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
|
|
Loading…
Reference in a new issue