diff options
author | 2018-08-25 18:00:58 +0200 | |
---|---|---|
committer | 2018-08-26 23:47:02 +0200 | |
commit | c33d890dcb5a03649f07dd6c46729e7873468b40 (patch) | |
tree | 40a91c43353de645b5ca3a132f7aa061220ca9ff /check-blobs.sh | |
parent | dfd0349772763e07b16bcaa13f536bfa381044b8 (diff) | |
download | cortex-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-x | check-blobs.sh | 21 |
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 |