You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
471 B
22 lines
471 B
#!/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)
|
|
riscv64-unknown-elf-objdump -Cd $lib > bin/${filename%.a}.before
|
|
done
|
|
|
|
./assemble.sh
|
|
|
|
for lib in $(ls bin/*.a); do
|
|
filename=$(basename $lib)
|
|
riscv64-unknown-elf-objdump -Cd $lib > bin/${filename%.a}.after
|
|
done
|
|
|
|
for cksum in $(ls bin/*.after); do
|
|
diff -u $cksum ${cksum%.after}.before
|
|
done
|