aboutsummaryrefslogtreecommitdiff
path: root/check-blobs.sh
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-08-26 23:57:12 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-08-26 23:57:12 +0000
commit478418c0eb38b9311e574d18d12cac69d3044e63 (patch)
tree0c3eed1a715253acf3378da4c731781fb72bd0e3 /check-blobs.sh
parentdfd0349772763e07b16bcaa13f536bfa381044b8 (diff)
parent945e2683f89a031b44b65d25e1917f3157c49fa1 (diff)
downloadcortex-m-478418c0eb38b9311e574d18d12cac69d3044e63.tar.gz
cortex-m-478418c0eb38b9311e574d18d12cac69d3044e63.tar.zst
cortex-m-478418c0eb38b9311e574d18d12cac69d3044e63.zip
Merge #108
108: remove build dependency on arm-none-eabi-gcc r=adamgreig a=japaric by shipping pre-assembled object files. This is the same approach as the one used in rust-embedded/cortex-m#95 r? @rust-embedded/cortex-m (anyone) Co-authored-by: Jorge Aparicio <jorge@japaric.io>
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