aboutsummaryrefslogtreecommitdiff
path: root/check-blobs.sh
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-08-25 18:00:58 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-08-26 23:47:02 +0200
commitc33d890dcb5a03649f07dd6c46729e7873468b40 (patch)
tree40a91c43353de645b5ca3a132f7aa061220ca9ff /check-blobs.sh
parentdfd0349772763e07b16bcaa13f536bfa381044b8 (diff)
downloadcortex-m-c33d890dcb5a03649f07dd6c46729e7873468b40.tar.gz
cortex-m-c33d890dcb5a03649f07dd6c46729e7873468b40.tar.zst
cortex-m-c33d890dcb5a03649f07dd6c46729e7873468b40.zip
remove build dependency on arm-none-eabi-gcc
by shipping pre-assembled object files. This is the same approach as the one used in rust-embedded/cortex-m#95
Diffstat (limited to 'check-blobs.sh')
-rwxr-xr-xcheck-blobs.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/check-blobs.sh b/check-blobs.sh
new file mode 100755
index 0000000..94fde42
--- /dev/null
+++ b/check-blobs.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Checks that the blobs are up to date with the committed assembly files
+
+set -euxo pipefail
+
+for lib in $(ls bin/*.a); do
+ filename=$(basename $lib)
+ arm-none-eabi-objdump -Cd $lib > bin/${filename%.a}.before
+done
+
+./assemble.sh
+
+for lib in $(ls bin/*.a); do
+ filename=$(basename $lib)
+ arm-none-eabi-objdump -Cd $lib > bin/${filename%.a}.after
+done
+
+for cksum in $(ls bin/*.after); do
+ diff -u $cksum ${cksum%.after}.before
+done