-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add support for RISC-V code cross compilation test #101
Conversation
45e15db
to
a320453
Compare
Add steps needed for RISC-V specific code to cross-compile. Signed-off-by: Ruoqing He <[email protected]>
a320453
to
1521c36
Compare
@TimePrinciple Appreciate the alternative workaround. Just FYI, last time I proposed using
But for cross-compilation, |
Indeed, I'm proposing this approach because of it was mentioned in this issue. |
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This work was inspired by the work done by @endeneer in PR rust-vmm#91, and is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This work was inspired by the work done by @endeneer in PR rust-vmm#91, and is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This work was inspired by the work done by @endeneer in PR rust-vmm#91, and is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by the second draft rust-vmm#104 in the future which standardise `riscv64`. Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This work was inspired by the work done by @endeneer in PR rust-vmm#91, and is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by the second draft rust-vmm#104 in the future which standardise `riscv64`. Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by the second draft rust-vmm#104 in the future which standardise `riscv64`. Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by the second draft rust-vmm#104 in the future which standardise `riscv64`. Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This is the third draft proceeds rust-vmm#101, rust-vmm#104. It is expected to be replaced by the second draft rust-vmm#104 in the future which standardise `riscv64`. Signed-off-by: Ruoqing He <[email protected]>
Add build scripts for v6.10 riscv64 kernel, qemu-system-riscv64 and opensbi required to boot qemu-system inside docker container. With this approach, we are able to run tests inside qemu-system, while preserving the original output as much as possbile with ssh. This is the third draft proceeds #101, #104. It is expected to be replaced by the second draft #104 in the future which standardise `riscv64`. Signed-off-by: Ruoqing He <[email protected]>
Add steps needed for RISC-V specific code to cross-compile.
Summary of the PR
I'm proposing using x86_64 platform to cross-compile RISC-V code and
qemu-riscv64-static
to test the compiled binary as a temporary solution, since RISC-V machines are yet available on BuildKite.Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.