File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ arm-none-eabi-as -march=armv7e-m asm-cm7-r0p1.s -o bin/$crate-cm7-r0p1.o
22
22
ar crs bin/thumbv7em-none-eabi.a bin/$crate .o bin/$crate -v7.o bin/$crate -cm7-r0p1.o
23
23
ar crs bin/thumbv7em-none-eabihf.a bin/$crate .o bin/$crate -v7.o bin/$crate -cm7-r0p1.o
24
24
25
+ arm-none-eabi-as -march=armv8-m.base asm.s -o bin/$crate .o
26
+ ar crs bin/thumbv8m.base-none-eabi.a bin/$crate .o
27
+
25
28
rm bin/$crate .o
26
29
rm bin/$crate -v7.o
27
30
rm bin/$crate -cm7-r0p1.o
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ fn main() {
26
26
println ! ( "cargo:rustc-cfg=cortex_m" ) ;
27
27
println ! ( "cargo:rustc-cfg=armv7m" ) ;
28
28
//println!("cargo:rustc-cfg=armv7em");
29
+ } else if target. starts_with ( "thumbv8m" ) {
30
+ println ! ( "cargo:rustc-cfg=cortex_m" ) ;
31
+ println ! ( "cargo:rustc-cfg=armv8m" ) ;
29
32
}
30
33
31
34
if target. ends_with ( "-eabihf" ) {
You can’t perform that action at this time.
0 commit comments