aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/build.rs
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/build.rs
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/build.rs')
-rw-r--r--cortex-m-rt/build.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/cortex-m-rt/build.rs b/cortex-m-rt/build.rs
index 67cdfab..c56f14c 100644
--- a/cortex-m-rt/build.rs
+++ b/cortex-m-rt/build.rs
@@ -7,8 +7,6 @@ fn main() {
let target = env::var("TARGET").unwrap();
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
- has_fpu(&target);
-
if target.starts_with("thumbv") {
fs::copy(
format!("bin/{}.a", target),
@@ -81,9 +79,3 @@ handlers.");
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=link.x.in");
}
-
-fn has_fpu(target: &str) {
- if target.ends_with("eabihf") {
- println!("cargo:rustc-cfg=has_fpu");
- }
-}