Rust: RISC-V ビルド

Takami Torao Rust 1.72.1 #RISCV
  • このエントリーをはてなブックマークに追加

Table of Contents

  1. RISC-V バイナリの作成

RISC-V バイナリの作成

$ rust target list | grep riscv
riscv32i-unknown-none-elf
riscv32imac-unknown-none-elf
riscv32imc-unknown-none-elf
riscv64gc-unknown-linux-gnu
riscv64gc-unknown-none-elf
riscv64imac-unknown-none-elf
$ rustup target add riscv32imc-unknown-none-elf
info: downloading component 'rust-std' for 'riscv32imc-unknown-none-elf'
info: installing component 'rust-std' for 'riscv32imc-unknown-none-elf'
$ cargo build --target riscv32imc-unknown-none-elf --release