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

tools/ci: Add Rust Target for QEMU RISC-V 64-bit #73

Closed
wants to merge 1 commit into from

Conversation

lupyuen
Copy link

@lupyuen lupyuen commented Aug 7, 2024

Summary

This PR updates the Docker Image for NuttX CI, so that it builds Rust Apps correctly for QEMU RISC-V 64-bit. We add the Rust Target for riscv64gc-unknown-none-elf to the Docker Image.

In the next PR, we will call the Updated Docker Image to compile the Rust App leds_rust, at every run of NuttX CI. This will validate whether Rust Apps are built correctly for QEMU RISC-V 64-bit.

Modified Files

tools/ci/docker/linux/Dockerfile: Add Rust Target riscv64gc-unknown-none-elf for Docker CI

tools/ci/platforms/ubuntu.sh: Same as above, but for Ubuntu CI

tools/ci/platforms/msys2.sh: Same as above, but for MSYS2 CI

Impact

No impact on existing CI, since the Rust Target riscv64gc-unknown-none-elf is not used by existing code.

Testing

We tested the CI Docker Image by rebuilding it (only the essential parts), and running the CI Build for rv-virt:*. Which successfully compiles rv-virt:leds64_rust and the Rust App leds_rust:

$ cd nuttx/tools/ci/docker/linux
$ docker build -t nuttx:v1 .
$ docker run -it nuttx:v1 /bin/bash 
# cd
# git clone https://github.com/lupyuen2/wip-nuttx nuttx --branch safer-rust-blinky9
# git clone https://github.com/apache/nuttx-apps apps
# cd nuttx/tools/ci
# ./cibuild.sh -c -A -N -R testlist/risc-v-02.dat

Configuration/Tool: rv-virt/leds64_rust
  Cleaning...
  Configuring...
  Building NuttX...
riscv-none-elf-ld: warning: /root/nuttx/nuttx has a LOAD segment with RWX permissions
  Normalize rv-virt/leds64_rust

@lupyuen lupyuen changed the title safer-rust-blinky8 tools/ci: Add Rust Target for QEMU RISC-V 64-bit Aug 7, 2024
This PR updates the Docker Image for NuttX CI, so that it builds Rust Apps correctly for QEMU RISC-V 64-bit. We add the Rust Target for `riscv64gc-unknown-none-elf` to the Docker Image.

In the next PR, we will call the Updated Docker Image to [compile the Rust App `leds_rust`](apache#12852), at every run of NuttX CI. This will validate whether Rust Apps are built correctly for QEMU RISC-V 64-bit.

Modified Files:

`tools/ci/docker/linux/Dockerfile`: Add Rust Target `riscv64gc-unknown-none-elf` for Docker CI

`tools/ci/platforms/ubuntu.sh`: Same as above, but for Ubuntu CI

`tools/ci/platforms/msys2.sh`: Same as above, but for MSYS2 CI
@lupyuen lupyuen force-pushed the safer-rust-blinky8 branch from 529cbb0 to 01ca9e1 Compare August 7, 2024 08:02
@lupyuen lupyuen closed this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant