From 0806a1e2ae31fec34dcc6b9c502bf5b8cd5da1be Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 25 Aug 2018 17:15:41 +0200 Subject: check that the blobs are up to date --- cortex-m-rt/check-blobs.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 cortex-m-rt/check-blobs.sh (limited to 'cortex-m-rt/check-blobs.sh') diff --git a/cortex-m-rt/check-blobs.sh b/cortex-m-rt/check-blobs.sh new file mode 100755 index 0000000..e1d0d80 --- /dev/null +++ b/cortex-m-rt/check-blobs.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# 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 From 4faa462a3d349358fd217b468c62ad362c302abf Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 25 Aug 2018 17:18:54 +0200 Subject: #!/bin/bash --- cortex-m-rt/assemble.sh | 2 +- cortex-m-rt/check-blobs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cortex-m-rt/check-blobs.sh') diff --git a/cortex-m-rt/assemble.sh b/cortex-m-rt/assemble.sh index 5d368a8..f9ec7d8 100755 --- a/cortex-m-rt/assemble.sh +++ b/cortex-m-rt/assemble.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -euxo pipefail diff --git a/cortex-m-rt/check-blobs.sh b/cortex-m-rt/check-blobs.sh index e1d0d80..94fde42 100755 --- a/cortex-m-rt/check-blobs.sh +++ b/cortex-m-rt/check-blobs.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Checks that the blobs are up to date with the committed assembly files -- cgit v1.2.3