Skip to content

Commit 9577c92

Browse files
jerryyang35ssekar15
authored andcommitted
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: Jiawei Yang <[email protected]>
1 parent 18db102 commit 9577c92

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2024 NXP
2+
# Copyright 2024-2025 NXP
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -8,14 +8,18 @@ set(hal_nxp_dir ${ZEPHYR_HAL_NXP_MODULE_DIR})
88
set(hal_nxp_blobs_dir ${hal_nxp_dir}/zephyr/blobs)
99
set(blob_gen_file ${ZEPHYR_BINARY_DIR}/include/generated/bt_nxp_ctlr_fw.h)
1010

11-
if(CONFIG_BT_NXP_NW612)
11+
if(CONFIG_BUILD_ONLY_NO_BLOBS)
12+
set(blob_file src/no_blobs.h)
13+
elseif(CONFIG_BT_NXP_NW612)
1214
set(blob_file ${hal_nxp_blobs_dir}/iw612/uart_nw61x_se.h)
1315
endif()
1416

1517
if (NOT DEFINED blob_file)
1618
message(FATAL_ERROR "Unsupported controller. Please select a BT conntroller, refer to ./driver/bluetooth/hci/Kconfig.nxp")
1719
endif()
1820

19-
zephyr_blobs_verify(FILES ${blob_file} REQUIRED)
21+
if(NOT CONFIG_BUILD_ONLY_NO_BLOBS)
22+
zephyr_blobs_verify(FILES ${blob_file} REQUIRED)
23+
endif()
2024

2125
configure_file(${blob_file} ${blob_gen_file} COPYONLY)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef __UART_BT_FW_H__
8+
#define __UART_BT_FW_H__
9+
10+
11+
const unsigned char *bt_fw_bin;
12+
unsigned int bt_fw_bin_len;
13+
14+
#endif /* __UART_BT_FW_H__ */

0 commit comments

Comments
 (0)