rust-lang / rust-lang/rust

riscv64gc-unknown-efi target

Open
#148,920 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

C-discussion
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Problem you are trying to solve

With the advent of uefi-rs, it is now possible to write UEFI applications in Rust. There are already targets for rustup targeting i686, x86_64, and Aarch64, however there are none targeting RISC-V. I understand that RISC-V is a young platform, and as a result, UEFI on RISC-V is still in its infant stages. That being said, there are already RISC-V boards shipping with UEFI, and it would be nice to have a rustup-native target for RISC-V UEFI.

Solution you'd like

It would be nice to have a RISC-V target for UEFI included in rustup so that way a user can add the target without having to roll their own.

Notes

I have attempted to roll my own RISC-V UEFI target which can be found here. It includes my compilation process with the custom target. I have yet to get a working OVMF on QEMU for RISC-V and I do not have any development boards yet (although I will most likely acquire one.) That is to say that my target compiles, but is currently untested.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing i686, x86_64, and AArch64 UEFI targets, then review the custom target and compilation process in the linked rustup-riscv64gc-unknown-uefi repository. Confirm the target builds and is tested on a RISC-V UEFI environment before integrating it as a rustup-native target.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.