1# Copyright 2024 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4if(CONFIG_SOC_MIMX8UD7_ADSP)
5  zephyr_include_directories(adsp)
6  add_subdirectory(adsp)
7
8  #  west sign
9
10  # See detailed comments in soc/intel/intel_adsp/common/CMakeLists.txt
11  add_custom_target(zephyr.ri ALL
12    DEPENDS ${CMAKE_BINARY_DIR}/zephyr/zephyr.ri
13  )
14
15  add_custom_command(
16    OUTPUT ${CMAKE_BINARY_DIR}/zephyr/zephyr.ri
17    COMMENT "west sign --if-tool-available --tool rimage ..."
18    COMMAND  west sign --if-tool-available --tool rimage --build-dir ${CMAKE_BINARY_DIR} ${WEST_SIGN_OPTS}
19    DEPENDS ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME}
20  )
21
22  set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/adsp/linker.ld CACHE INTERNAL "")
23endif()
24