~ruther/avr-device

ref: b11ae9830db37524d0e44f335cbb920c6f39c8b3 avr-device/build.rs -rw-r--r-- 573 bytes
b11ae983 — Rahix Add build-script to auto-generate chip-defs 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use std::process;

fn main() {
    // Just run `make` to generate the chip definitions
    if !process::Command::new("make").status().unwrap().success() {
        eprintln!("
avr-device: Running `make` resulted in a failure.

    Please make sure, you have all dependencies
    installed.  They are:
        - atdf2svd
        - svd2rust
        - form
        - rustfmt (for the toolchain you are using!)
        - PyYAML

    For more info, look at README file:
        https://github.com/Rahix/avr-device/blob/master/README.md
");
        panic!("make failed");
    }
}
Do not follow this link