Skip to content

Commit 75fabee

Browse files
Jiawei YangChromeos LUCI
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. (cherry picked from commit b5ba50c) Original-Signed-off-by: Jiawei Yang <[email protected]> GitOrigin-RevId: b5ba50c Cr-Build-Id: 8722485936012132001 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8722485936012132001 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I2ee81f6d52c162e037a8560e3a20f9d665e004e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6281751 Bot-Commit: ChromeOS Prod (Robot) <[email protected]> Commit-Queue: ChromeOS Prod (Robot) <[email protected]> Tested-by: ChromeOS Prod (Robot) <[email protected]>
1 parent 51b9112 commit 75fabee

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)