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
2222ar crs bin/thumbv7em-none-eabi.a bin/$crate .o bin/$crate -v7.o bin/$crate -cm7-r0p1.o
2323ar crs bin/thumbv7em-none-eabihf.a bin/$crate .o bin/$crate -v7.o bin/$crate -cm7-r0p1.o
2424
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+
2528rm bin/$crate .o
2629rm bin/$crate -v7.o
2730rm bin/$crate -cm7-r0p1.o
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ fn main() {
2626 println ! ( "cargo:rustc-cfg=cortex_m" ) ;
2727 println ! ( "cargo:rustc-cfg=armv7m" ) ;
2828 //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" ) ;
2932 }
3033
3134 if target. ends_with ( "-eabihf" ) {
You can’t perform that action at this time.
0 commit comments