From 2be46c6a93f615a5564f432d123981bd51bfcf29 Mon Sep 17 00:00:00 2001 From: Fengming Ye Date: Thu, 8 Aug 2024 18:01:51 +0900 Subject: [PATCH] mcux: hal_nxp: include mflash component for conn_fwloader Add cmake module path of mflash and flexspi, cache64 dependent for component conn_fwloader. Signed-off-by: Fengming Ye --- mcux/hal_nxp.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mcux/hal_nxp.cmake b/mcux/hal_nxp.cmake index c829696d2..0e68126e5 100644 --- a/mcux/hal_nxp.cmake +++ b/mcux/hal_nxp.cmake @@ -408,6 +408,13 @@ endif() if(${MCUX_DEVICE} MATCHES "RW61") set(CONFIG_USE_component_osa_zephyr true) + if(CONFIG_NXP_FW_LOADER) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mcux-sdk/components/flash/mflash) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mcux-sdk/components/flash/mflash/rdrw612bga) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mcux-sdk/drivers/cache/cache64) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mcux-sdk/drivers/flexspi) + include(component_mflash_rdrw610) + endif() endif() include_ifdef(CONFIG_USE_component_osa_zephyr set_component_osa)