mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
Systems like OpenBSD and NixOS have bash in different locations. This allows the various scripts to be run on those systems.
21 lines
479 B
Bash
21 lines
479 B
Bash
#!/usr/bin/env 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
|