From c33d890dcb5a03649f07dd6c46729e7873468b40 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 25 Aug 2018 18:00:58 +0200 Subject: 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 --- check-blobs.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 check-blobs.sh (limited to 'check-blobs.sh') 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 -- cgit v1.2.3