Skip to content
Commit abc8cb3b authored by Mathieu Choplain's avatar Mathieu Choplain Committed by Maureen Helm
Browse files

llext: warn when devices aren't exported and extension tries to use them



Kconfig option LLEXT_EXPORT_DEVICES can be enabled to make all device
objects of an image available to LLEXTs, but it is disabled by default.
If an extension tries to import devices when the base image was not built
with this option, the dynamic linking equivalent of the much beloved error
"Undefined symbol __device_dts_ord_XXX" is logged, but this can be quite
cryptic to understand since user may be unaware of LLEXT_EXPORT_DEVICES.

Detect such invalid imports and print a special message that directs users
towards the appropriate Kconfig option, which should reduce the confusion.

Signed-off-by: default avatarMathieu Choplain <mathieu.choplain@st.com>
parent b6e2486a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment