modules: hal_nxp: Fix bt_controller cmake load issue

- In middleware/CMakeLists.txt, using add_subdirectory()
    to load the cmakelists.txt under bt_controller will
    result in the bt_controller directory not being found
    correctly, because the starting point of the query
    is mcux-sdk-ng/CMakeLists.txt. Need to add
    ${CMAKE_CURRENT_LIST_DIR} to bt_controller to correctly
    locate the folder.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
Zhaoxiang Jin 2025-04-10 17:47:18 +08:00 committed by Benjamin Cabé
commit b39f8bdd9c

View file

@ -40,6 +40,4 @@ add_subdirectory(${MCUX_SDK_NG_DIR}/middleware/usb
${CMAKE_CURRENT_BINARY_DIR}/usb
)
if(CONFIG_BT_H4_NXP_CTLR)
add_subdirectory(bt_controller)
endif()
add_subdirectory_ifdef(CONFIG_BT_H4_NXP_CTLR ${CMAKE_CURRENT_LIST_DIR}/bt_controller)