Support alternative develoment flow with less Nix#340
Merged
Conversation
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
Signed-off-by: Nick Spinale <nick@nickspinale.com>
https://rustsec.org/advisories/RUSTSEC-2026-0104 Signed-off-by: Nick Spinale <nick@nickspinale.com>
Work around memory corruption bug in sdfgen Signed-off-by: Nick Spinale <nick@nickspinale.com>
Instead of from dev environment Signed-off-by: Nick Spinale <nick@nickspinale.com>
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.
The purpose of this PR is to enable a development flow that does not involve Nix in the the inner development loop.
Before this PR, running a test requires building it with Nix.
This PR adds an alternative development flow for most tests. Nix is used to build a tree of Cargo
config.tomlfiles that are linked at./.cargo/gen/../.cargo/gen/target/*.tomlcontain configuration for a particular Rust toolchain target, and./cargo/gen/world/*.tomlcontain configuration for a particular seL4/Microkit configuration. One can build crates that depend on seL4 using a pair of Cargo configuration files, one for a target and one for a seL4/Microkit configuration. For example:The
./.cargo/gen/world/*.tomlfiles also setbuild.*.runnerto the new wrapper programsel4-test-runner, partially applied to some seL4/Microkit configuration-specific arguments. This wrapper program inspects the artifact it is to run to determine how to process it into an image that can be simulated by QEMU. For example, if it is a root task, it will be bundled into asel4-kernel-loaderimage; if it is a Microkit protection domain, it will be bundled into a Micorkit system image using the Microkit tool. After it is processed into an image, that image will be run with QEMU.This PR also adds utilities for tests to use to integrate with this way of being run. For example, macros useful for creating protection domain binaries which contain all of the test's protection domains.
This PR also contains many improvements and changes throughout the project to enable this new development flow.