8000 zephyr: Link MicroPython with the Zephyr kernel library. · micropython/micropython@2b0e64b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b0e64b

Browse files
MaureenHelmdpgeorge
authored andcommitted
zephyr: Link MicroPython with the Zephyr kernel library.
Unlike most other Zephyr libraries, libkernel.a is not built as a whole-archive. This change also fixes a linker error observed on nucleo_wb55rg while preparing an upgrade to Zephyr v3.5.0, caused by an undefined reference to `z_impl_k_busy_wait`. Signed-off-by: Maureen Helm <maureen.helm@analog.com>
1 parent c211c05 commit 2b0e64b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

ports/zephyr/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ zephyr_library_compile_definitions(
109109
)
110110

111111
zephyr_library_sources(${MICROPY_SOURCE_QSTR})
112+
zephyr_library_link_libraries(kernel)
112113

113114
add_dependencies(${MICROPY_TARGET} zephyr_generated_headers)
114115

ports/zephyr/src/zephyr_start.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@ void main(void) {
3636
zephyr_getchar_init();
3737
#endif
3838
real_main();
39-
40-
// This is needed so the linker includes k_timer_init, z_impl_k_timer_start
41-
// and z_impl_k_timer_stop, as used by libmicropython.a.
42-
k_timer_start(NULL, K_MSEC(0), K_MSEC(0));
4339
}

0 commit comments

Comments
 (0)
0