aboutsummaryrefslogtreecommitdiff
path: root/assemble.sh
diff options
context:
space:
mode:
Diffstat (limited to 'assemble.sh')
-rwxr-xr-xassemble.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/assemble.sh b/assemble.sh
index b0a4b3e..d1e743b 100755
--- a/assemble.sh
+++ b/assemble.sh
@@ -6,6 +6,9 @@ set -euxo pipefail
crate=cortex-m
+# remove existing blobs because otherwise this will append object files to the old blobs
+rm -f bin/*.a
+
arm-none-eabi-as -march=armv6s-m asm.s -o bin/$crate.o
ar crs bin/thumbv6m-none-eabi.a bin/$crate.o