espre-c6/hp-core/build.rs
Thomas Klaehn 03a3c8732f Initial commit
Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
2025-02-12 05:32:06 +01:00

20 lines
509 B
Rust

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(())
}