Skip to content

Commit 7bc5dc6

Browse files
committed
loader: Export the correct sketch log symbols.
The created sketch log structures depends on the config: CONFIG_LOG (IMMEDIATE/DEFERRED): creates log_const_sketch struct. CONFIG_LOG_RUNTIME_FILTERING (implied by CONFIG_SHELL): creates log_dynamic_sketch struct. CONFIG_LOG_MODE_IMMEDIATE + CONFIG_SHELL: creates both. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent 4cf15b3 commit 7bc5dc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

loader/llext_exports.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,14 @@ EXPORT_SYMBOL(usb_enable);
8282
EXPORT_SYMBOL(usb_disable);
8383
#endif
8484

85+
#if CONFIG_LOG
8586
EXPORT_SYMBOL(z_log_msg_runtime_vcreate);
87+
FORCE_EXPORT_SYM(log_const_sketch)
88+
#endif
8689

90+
#if defined(CONFIG_LOG_RUNTIME_FILTERING)
8791
FORCE_EXPORT_SYM(log_dynamic_sketch)
92+
#endif
8893

8994
#if defined(CONFIG_NETWORKING)
9095
FORCE_EXPORT_SYM(net_if_foreach);

0 commit comments

Comments
 (0)