From 833db12d58d618279b89158d6bc5e7b1ceaf270d Mon Sep 17 00:00:00 2001 From: David Lenfesty Date: Sat, 22 Apr 2023 17:41:51 -0600 Subject: [PATCH] fw: make build script return with error code so it can be scripted --- firmware/build_and_strip.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/build_and_strip.sh b/firmware/build_and_strip.sh index 1c6fb70..80c9afd 100755 --- a/firmware/build_and_strip.sh +++ b/firmware/build_and_strip.sh @@ -1,4 +1,9 @@ #!/usr/bin/sh DEFMT_LOG=trace cargo build --release +if [ $? -ne 0 ] +then + exit $? +fi + riscv64-unknown-elf-objcopy -S -O binary target/riscv32i-unknown-none-elf/release/fw fw.bin