examples/sotest: support packaged shared library fixtures#3526
Draft
aviralgarg05 wants to merge 1 commit into
Draft
examples/sotest: support packaged shared library fixtures#3526aviralgarg05 wants to merge 1 commit into
aviralgarg05 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This patch is another smaller upstream slice being extracted from the ongoing GSoC 2026 Dynamic ELF loading and
nxpkgwork for NuttX.An earlier draft PR (#3474) carries the initial
nxpkgpackage lifecycle helper. PR #3519 carries a separateapps/module-support cleanup slice from the same broader effort. This PR is independent of #3519, but can still be reviewed after it to keep the follow-up series orderly.Series order for this PR:
The change itself extends the
examples/sotestpackaging path so the shared-library test fixtures can also be prepared throughnxpkg-style package artifacts.Concretely, it:
shared-index.jsonandpkgsotest.nshfrom the builtmodprintandsotestshared objectsarch/compatmetadata and SHA-256 digests for those packaged shared-library fixturessotestto run in either its existing builtin-ROMFS flow or from explicit shared-library paths, with a--mounthelper mode for preparing the builtin test mount separatelyImpact
This makes the
sotestshared-library example usable as a package-style fixture producer for the same Dynamic ELF /nxpkgseries.That is useful for validating the shared-library side of the packaging flow, where the loader should consume installed artifacts rather than only the default builtin test paths.
There is no intended regression for the normal
sotestexample flow. The existing builtin-ROMFS path is preserved, while the test binary now also accepts explicit shared-library paths when the package-installed copies need to be exercised.Keeping this work separate from the larger series should make review easier, while still preserving the intended merge order after #3474.
Testing
Host:
arm64)xtensa-esp-elf-gcc (crosstool-NG esp-14.2.0_20241119) 14.2.0esptool.py v4.11.0Focused verification for this PR:
appsworktree with this patch stacked on top of the current#3474headapache/nuttxworktree at the localboards/xtensa/esp32s3/xiao:sotest: enable nxpkg fixturescommit used for the matching XIAO configurationxtensaesp32s3-xiao:sotestBuild steps:
Generated fixture artifacts:
Build result:
Broader series context:
nxpkgseries has been validated separately on the Seeed XIAO ESP32S3 Sense during the ongoing bring-up work, but this PR description is intentionally limiting its direct claim to the focused stacked verification above