1#
2# Copyright 2024 NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7set(hal_nxp_dir           ${ZEPHYR_HAL_NXP_MODULE_DIR})
8set(hal_nxp_blobs_dir     ${hal_nxp_dir}/zephyr/blobs)
9set(blob_gen_file         ${ZEPHYR_BINARY_DIR}/include/generated/bt_nxp_ctlr_fw.h)
10
11if(CONFIG_BT_NXP_NW612)
12    set(blob_file ${hal_nxp_blobs_dir}/iw612/uart_nw61x_se.h)
13endif()
14
15if (NOT DEFINED blob_file)
16    message(FATAL_ERROR "Unsupported controller. Please select a BT conntroller, refer to ./driver/bluetooth/hci/Kconfig.nxp")
17endif()
18
19zephyr_blobs_verify(FILES ${blob_file} REQUIRED)
20
21configure_file(${blob_file} ${blob_gen_file} COPYONLY)
22