check-blobs.sh 471 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # Checks that the blobs are up to date with the committed assembly files
  3. set -euxo pipefail
  4. for lib in $(ls bin/*.a); do
  5. filename=$(basename $lib)
  6. riscv64-unknown-elf-objdump -Cd $lib > bin/${filename%.a}.before
  7. done
  8. ./assemble.sh
  9. for lib in $(ls bin/*.a); do
  10. filename=$(basename $lib)
  11. riscv64-unknown-elf-objdump -Cd $lib > bin/${filename%.a}.after
  12. done
  13. for cksum in $(ls bin/*.after); do
  14. diff -u $cksum ${cksum%.after}.before
  15. done