diff options
| author | Ulf Lilleengen <[email protected]> | 2022-06-27 14:24:19 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-06-27 14:24:19 +0200 |
| commit | f1f90b17b5c1c5cb56b6ac7722b5ef91b6cc3f2d (patch) | |
| tree | 912f669ca14e4f952632eca2b6fea096e7fdeac0 /examples/boot | |
| parent | 776be79f7bb10b09e795e2ea93bb795a653c9b4c (diff) | |
Add build.rs to detect armv6
Diffstat (limited to 'examples/boot')
| -rw-r--r-- | examples/boot/bootloader/stm32/build.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/boot/bootloader/stm32/build.rs b/examples/boot/bootloader/stm32/build.rs index 3997702f6..fd605991f 100644 --- a/examples/boot/bootloader/stm32/build.rs +++ b/examples/boot/bootloader/stm32/build.rs | |||
| @@ -24,9 +24,4 @@ fn main() { | |||
| 24 | if env::var("CARGO_FEATURE_DEFMT").is_ok() { | 24 | if env::var("CARGO_FEATURE_DEFMT").is_ok() { |
| 25 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); | 25 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); |
| 26 | } | 26 | } |
| 27 | |||
| 28 | let target = env::var("TARGET").unwrap(); | ||
| 29 | if target.starts_with("thumbv6m-") { | ||
| 30 | println!("cargo:rustc-cfg=armv6m"); | ||
| 31 | } | ||
| 32 | } | 27 | } |
