build .bin firmware image

pull/1/head
Sebastien Bourdeauducq 2019-06-06 17:17:45 +08:00
parent d2391e0aa1
commit 63664ab959
1 changed files with 1 additions and 0 deletions

View File

@ -17,5 +17,6 @@ rustPlatform.buildRustPackage rec {
installPhase = ''
mkdir -p $out
cp target/riscv32imc-unknown-none-elf/release/helloworld $out
${binutils-riscv}/bin/riscv32-unknown-elf-objcopy -O binary target/riscv32imc-unknown-none-elf/release/helloworld $out/helloworld.bin
'';
}