aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/assemble.sh
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2021-01-21 02:39:12 +0000
committerGravatar Jonas Schievink <jonasschievink@gmail.com> 2021-01-21 13:18:26 +0100
commit4426f26ab0aed70ae2cc433f55ee48f62d7eb46b (patch)
tree57a88f00c50b1f9d22c368c22ef828b8bd1b7d26 /cortex-m-rt/assemble.sh
parent0e82907ca384d10a7fb1f2b8cc70fdb58c0b2fcf (diff)
downloadcortex-m-4426f26ab0aed70ae2cc433f55ee48f62d7eb46b.tar.gz
cortex-m-4426f26ab0aed70ae2cc433f55ee48f62d7eb46b.tar.zst
cortex-m-4426f26ab0aed70ae2cc433f55ee48f62d7eb46b.zip
Update Reset-in-asm.
* Use arm-none-eabi-gcc to assemble, allowing use of preprocessor to conditionally enable the FPU for eabihf targets. * Remove has_fpu configuration from build.rs. * Remove FpuTrampoline as no longer required. * Remove the Rust Reset method entirely, since the asm Reset can now enable FPU and jump to user main.
Diffstat (limited to 'cortex-m-rt/assemble.sh')
-rwxr-xr-xcortex-m-rt/assemble.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/cortex-m-rt/assemble.sh b/cortex-m-rt/assemble.sh
index cdb3205..b914fed 100755
--- a/cortex-m-rt/assemble.sh
+++ b/cortex-m-rt/assemble.sh
@@ -9,21 +9,25 @@ crate=cortex-m-rt
# 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
+arm-none-eabi-gcc -c -march=armv6s-m asm.S -o bin/$crate.o
ar crs bin/thumbv6m-none-eabi.a bin/$crate.o
-arm-none-eabi-as -march=armv7-m asm.s -o bin/$crate.o
+arm-none-eabi-gcc -c -march=armv7-m asm.S -o bin/$crate.o
ar crs bin/thumbv7m-none-eabi.a bin/$crate.o
-arm-none-eabi-as -march=armv7e-m asm.s -o bin/$crate.o
+arm-none-eabi-gcc -c -march=armv7e-m asm.S -o bin/$crate.o
ar crs bin/thumbv7em-none-eabi.a bin/$crate.o
+
+arm-none-eabi-gcc -c -march=armv7e-m asm.S -DHAS_FPU -o bin/$crate.o
ar crs bin/thumbv7em-none-eabihf.a bin/$crate.o
-arm-none-eabi-as -march=armv8-m.base asm.s -o bin/$crate.o
+arm-none-eabi-gcc -c -march=armv8-m.base asm.S -o bin/$crate.o
ar crs bin/thumbv8m.base-none-eabi.a bin/$crate.o
-arm-none-eabi-as -march=armv8-m.main asm.s -o bin/$crate.o
+arm-none-eabi-gcc -c -march=armv8-m.main asm.S -o bin/$crate.o
ar crs bin/thumbv8m.main-none-eabi.a bin/$crate.o
+
+arm-none-eabi-gcc -c -march=armv8-m.main -DHAS_FPU asm.S -o bin/$crate.o
ar crs bin/thumbv8m.main-none-eabihf.a bin/$crate.o
rm bin/$crate.o