Skip to content

Commit 48647d1

Browse files
iuliana-prodancarlescufi
authored andcommitted
mcux: hal_nxp: update path for scfw_api
With HWMv2, when trying to load the scfw_api for 8QM or 8QXP I get: ``` include could not find requested file: driver_scfw_api ``` So update the path for scfw_api based on MCUX_DEVICE_PATH. For ADSP we don't have separate devices (i.e. MIMX8QX6_dsp or MIMX8QM6_dsp), because will duplicate a lot of code. For these we use the core devices (i.e. MIMX8QX6 or MIMX8QM6). Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com> Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
1 parent 1b0e20c commit 48647d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcux/hal_nxp.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ zephyr_library_compile_definitions_ifdef(
8181
# Required by all SCFW-based SoCs
8282
if (CONFIG_SOC_MIMX8QM_A53 OR CONFIG_SOC_MIMX8QM_ADSP OR CONFIG_SOC_MIMX8QXP_ADSP)
8383
list(APPEND CMAKE_MODULE_PATH
84-
${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE}/scfw_api
84+
${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE_PATH}/scfw_api
8585
)
86-
zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE}/scfw_api)
86+
zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}/mcux-sdk/devices/${MCUX_DEVICE_PATH}/scfw_api)
8787
include(driver_scfw_api)
8888
endif()
8989

0 commit comments

Comments
 (0)