aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-10 14:52:41 -0700
committerSelene ToyKeeper2023-11-10 14:52:41 -0700
commitcd77624256328b1924c49158b08f9d8c454fb637 (patch)
tree86ce4c98bc2ef5361a295c2f7736e7572cac74e9 /bin
parentadded a Makefile, so either `make` or `./make` can be used for most tasks (diff)
downloadanduril-cd77624256328b1924c49158b08f9d8c454fb637.tar.gz
anduril-cd77624256328b1924c49158b08f9d8c454fb637.tar.bz2
anduril-cd77624256328b1924c49158b08f9d8c454fb637.zip
added md5sum to build-all.sh output per target
(to make it easier to detect when builds did or didn't change)
Diffstat (limited to '')
-rwxr-xr-xbin/build-all.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/build-all.sh b/bin/build-all.sh
index 130923f..df72ad5 100755
--- a/bin/build-all.sh
+++ b/bin/build-all.sh
@@ -52,8 +52,11 @@ for TARGET in hw/*/*/**/"$UI".h ; do
# try to compile, track result, and rename compiled files
if bin/build.sh "$TARGET" ; then
- mv -f "ui/$UI/$UI".hex "hex/$UI.$NAME.hex"
- echo " > hex/$UI.$NAME.hex"
+ HEX_OUT="hex/$UI.$NAME.hex"
+ mv -f "ui/$UI/$UI".hex "$HEX_OUT"
+ MD5=$(md5sum "$HEX_OUT" | cut -d ' ' -f 1)
+ echo " # $MD5"
+ echo " > $HEX_OUT"
PASS=$((PASS + 1))
PASSED="$PASSED $NAME"
else