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

Minimal Rust Kernel: Use a runner to make cargo xrun work #582

merged 6 commits into from Apr 27, 2019


1 participant
Copy link

commented Apr 25, 2019

This PR updates the "Minimal Rust Kernel" post. It sets up a .cargo/config file to specify a default target and a runner for targets with os=none. This makes it possible to launch the kernel in QEMU through a simple cargo xrun.

The goal is that the user can use the familiar cargo commands and never needs to invoke bootimage directly. We still need cargo-xbuild to build the sysroot, so the user has to prefix every cargo command with an x for now, but cargo will hopefully integrate this functionality soon.

The only place where the user has to use a non-standard cargo command, is when they want to create a bootable disk image for booting from an USB stick. For this case, the bootimage crate supports a cargo bootimage subcommand, which is equivalent to bootimage build but feels more cargo-like.

This PR is blocked on a rewrite of the test system, because the runner also applies to cargo test, so that it breaks unit testing on the host system. I'm currently working on a complete rewrite of the testing posts that will fix this issue.

This should be merge together with #585 and #586.

@phil-opp phil-opp added the relnotes label Apr 25, 2019

phil-opp added a commit that referenced this pull request Apr 25, 2019

@phil-opp phil-opp referenced this pull request Apr 25, 2019


New testing post #584

12 of 12 tasks complete

@phil-opp phil-opp force-pushed the bootimage-runner branch from e777b58 to 82c499a Apr 26, 2019

@phil-opp phil-opp added this to In Progress in Roadmap Apr 26, 2019

@phil-opp phil-opp merged commit 5808aaf into master Apr 27, 2019

1 check passed

phil-opp.blog_os Build #20190426.22 succeeded

Roadmap automation moved this from In Progress to Done Apr 27, 2019

@bors bors bot deleted the bootimage-runner branch Apr 27, 2019

phil-opp added a commit that referenced this pull request May 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.