1# SPDX-License-Identifier: Apache-2.0
2
3if (CONFIG_SOF AND CONFIG_BOARD_IMX95_EVK_MIMX9596_M7_DDR)
4  add_custom_target(zephyr.ri ALL
5    DEPENDS ${CMAKE_BINARY_DIR}/zephyr/zephyr.ri
6  )
7
8  add_custom_command(
9    OUTPUT ${CMAKE_BINARY_DIR}/zephyr/zephyr.ri
10    COMMAND west sign --if-tool-available --tool rimage --build-dir ${CMAKE_BINARY_DIR} ${WEST_SIGN_OPTS}
11    DEPENDS ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}
12  )
13endif()
14