Skip to content

Commit 7a4f0e9

Browse files
committed
Bluetooth: Controller: fixed native_sim bluetooth tests
the tests started failing after recent nrfxlib update (PR 25481) adding dependency on nrfx. This commit fixes the tests by providing nrfx.h stub for native_sim tests which doesn't require any additional dependencies and only provides macros needed by the tests. Signed-off-by: Ivan Iushkov <[email protected]>
1 parent 4f726bb commit 7a4f0e9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tests/subsys/bluetooth/controller/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ target_sources(app PRIVATE src/hci_cmd_cb_host_buffer_size_test.c)
2222
cmock_handle(${ZEPHYR_NRFXLIB_MODULE_DIR}/softdevice_controller/include/sdc_hci_cmd_controller_baseband.h)
2323

2424
# Include paths
25-
include_directories(${ZEPHYR_HAL_NORDIC_MODULE_DIR}/nrfx)
2625
include_directories(${ZEPHYR_NRF_MODULE_DIR}/subsys/bluetooth/controller)
26+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* nrfx.h stub for native_sim bluetooth controller tests */
8+
#ifndef NRFX_H__
9+
#define NRFX_H__
10+
11+
#include <zephyr/toolchain.h>
12+
13+
#define __PACKED __packed
14+
#define __ALIGN(n) __aligned(n)
15+
16+
#endif /* NRFX_H__ */

0 commit comments

Comments
 (0)