Commit b5ba50c6 authored by Jiawei Yang's avatar Jiawei Yang Committed by Fabio Baltieri
Browse files

modules: hal_nxp: Add empty file to support CONFIG_BUILD_ONLY_NO_BLOBS

Add empty file to support building with CONFIG_BUILD_ONLY_NO_BLOBS
option.

Signed-off-by: default avatarJiawei Yang <jiawei.yang_1@nxp.com>
parent d0d3dd47
Loading
Loading
Loading
Loading
+6 −2
Changes for modules/hal_nxp/bt_controller/CMakeLists.txt: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
#
# Copyright 2024 NXP
# Copyright 2024-2025 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -8,7 +8,9 @@ set(hal_nxp_dir ${ZEPHYR_HAL_NXP_MODULE_DIR})
set(hal_nxp_blobs_dir     ${hal_nxp_dir}/zephyr/blobs)
set(blob_gen_file         ${ZEPHYR_BINARY_DIR}/include/generated/bt_nxp_ctlr_fw.h)

if(CONFIG_BT_NXP_NW612)
if(CONFIG_BUILD_ONLY_NO_BLOBS)
    set(blob_file src/no_blobs.h)
elseif(CONFIG_BT_NXP_NW612)
    set(blob_file ${hal_nxp_blobs_dir}/iw612/uart_nw61x_se.h)
endif()

@@ -16,6 +18,8 @@ if (NOT DEFINED blob_file)
    message(FATAL_ERROR "Unsupported controller. Please select a BT conntroller, refer to ./driver/bluetooth/hci/Kconfig.nxp")
endif()

if(NOT CONFIG_BUILD_ONLY_NO_BLOBS)
   zephyr_blobs_verify(FILES ${blob_file} REQUIRED)
endif()

configure_file(${blob_file} ${blob_gen_file} COPYONLY)
+14 −0
Changes for modules/hal_nxp/bt_controller/src/no_blobs.h: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * Copyright 2024 NXP
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef __UART_BT_FW_H__
#define __UART_BT_FW_H__


const unsigned char *bt_fw_bin;
unsigned int bt_fw_bin_len;

#endif /* __UART_BT_FW_H__ */