Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: llext-edk: get the Zephyr SDK path from build_info.yml #83661

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

pillo79
Copy link
Collaborator

@pillo79 pillo79 commented Jan 7, 2025

The LLEXT EDK test works by packaging an EDK and then testing its functionality to build the extension in an external CMake build step. That CMakelists.txt file currently references the required tools using the ZEPHYR_SDK_INSTALL_DIR environment variable, which must be manually set by the user. This was causing issues in peculiar situations like this one CI run from #82990.

This change modifies the test to read the newly added build_info.yml file, generated by Zephyr during the first build step. This allows to set the ZEPHYR_SDK_INSTALL_DIR environment variable automatically based on the (possibly auto-discovered) SDK path.

The LLEXT EDK test works by packaging an EDK and then testing its
functionality to build the extension in an external CMake build step.
That CMakelists.txt file currently references the required tools using
the ZEPHYR_SDK_INSTALL_DIR environment variable, which must be manually
set by the user.

This change modifies the test to read the newly added 'build_info.yml'
file, generated by Zephyr during the first build step. This allows to
set the ZEPHYR_SDK_INSTALL_DIR environment variable automatically based
on the (possibly auto-discovered) SDK path.

A few minor compliance cleanups are also included.

Signed-off-by: Luca Burelli <[email protected]>
@pillo79 pillo79 force-pushed the pr-llext-edk-test-fix branch from 94751aa to a4a8d37 Compare January 8, 2025 08:14
@pillo79 pillo79 marked this pull request as ready for review January 8, 2025 08:34
@pillo79 pillo79 added the area: llext Linkable Loadable Extensions label Jan 9, 2025
@kartben kartben merged commit ddd795a into zephyrproject-rtos:main Jan 10, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: llext Linkable Loadable Extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants