From f5267d9ff2d22917fd171008d74401d6e49823bf Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Tue, 2 Mar 2021 11:53:28 -0800 Subject: [PATCH] soc/intel_adsp: Honor CONFIG_KERNEL_BINARY_NAME Turns out that the user can configure the "zephyr.elf" name via kconfig to be "something_else.elf" instead. And there's a test the does this. Use the right variable; don't hardcode. Signed-off-by: Andy Ross --- soc/xtensa/intel_adsp/common/bootloader.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/xtensa/intel_adsp/common/bootloader.cmake b/soc/xtensa/intel_adsp/common/bootloader.cmake index c127d94fd5c..3ff1ff32812 100644 --- a/soc/xtensa/intel_adsp/common/bootloader.cmake +++ b/soc/xtensa/intel_adsp/common/bootloader.cmake @@ -14,7 +14,7 @@ add_custom_target( COMMAND ${CMAKE_OBJCOPY} --add-section .module=mod-apl.bin --set-section-flags .module=load,readonly ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME} ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}.mod # Adjust final section addresses so they all appear in the cached region. - COMMAND ${ELF_FIX} ${CMAKE_OBJCOPY} ${CMAKE_BINARY_DIR}/zephyr/zephyr.elf.mod + COMMAND ${ELF_FIX} ${CMAKE_OBJCOPY} ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}.mod ) add_custom_target(