espre-c6/hp-core/build.rs

20 lines
509 B
Rust
Raw Permalink Normal View History

use std::error::Error;
// use esp_build::assert_unique_used_features;
fn main() -> Result<(), Box<dyn Error>> {
// assert_unique_used_features!("esp32c6");
// NOTE: update when adding new device support!
// Determine the name of the configured device:
let device_name = "esp32c6";
// Define all necessary configuration symbols for the configured device:
println!("cargo:rustc-cfg={}", device_name);
println!("cargo:rustc-link-arg=-Tlinkall.x");
// // Done!
Ok(())
}