diff options
author | Ulf Lilleengen <lulf@redhat.com> | 2022-06-27 14:24:19 +0200 |
---|---|---|
committer | Ulf Lilleengen <lulf@redhat.com> | 2022-06-27 14:24:19 +0200 |
commit | f1f90b17b5c1c5cb56b6ac7722b5ef91b6cc3f2d (patch) | |
tree | 912f669ca14e4f952632eca2b6fea096e7fdeac0 /embassy-boot | |
parent | 776be79f7bb10b09e795e2ea93bb795a653c9b4c (diff) | |
download | embassy-f1f90b17b5c1c5cb56b6ac7722b5ef91b6cc3f2d.zip |
Add build.rs to detect armv6
Diffstat (limited to 'embassy-boot')
-rw-r--r-- | embassy-boot/stm32/build.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/embassy-boot/stm32/build.rs b/embassy-boot/stm32/build.rs new file mode 100644 index 00000000..03d0119f --- /dev/null +++ b/embassy-boot/stm32/build.rs @@ -0,0 +1,11 @@ +use std::env; +use std::fs::File; +use std::io::Write; +use std::path::PathBuf; + +fn main() { + let target = env::var("TARGET").unwrap(); + if target.starts_with("thumbv6m-") { + println!("cargo:rustc-cfg=armv6m"); + } +} |