build .bin firmware image

This commit is contained in:
Sebastien Bourdeauducq 2019-06-06 17:17:45 +08:00
parent d2391e0aa1
commit 63664ab959

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
'';
}