diff --git a/build/native/cargo_driver/chip.rs b/build/native/cargo_driver/chip.rs index c8a073c39b..5e4e8ab07a 100644 --- a/build/native/cargo_driver/chip.rs +++ b/build/native/cargo_driver/chip.rs @@ -43,8 +43,10 @@ impl Chip { "xtensa-esp32-espidf" => &[Chip::ESP32], "xtensa-esp32s2-espidf" => &[Chip::ESP32S2], "xtensa-esp32s3-espidf" => &[Chip::ESP32S3], - "riscv32imc-esp-espidf" => &[Chip::ESP32C3, Chip::ESP32C2], // Keep C3 as the first in the list, so it is picked up by default; as C2 does not work for older ESP IDFs - "riscv32imac-esp-espidf" => &[Chip::ESP32H2, Chip::ESP32C5, Chip::ESP32C6], + // Keep C3 as the first in the list, so it is picked up by default; as C2 does not work for older ESP IDFs + "riscv32imc-esp-espidf" => &[Chip::ESP32C3, Chip::ESP32C2], + // Keep C6 at the first in the list, so it is picked up by default; as H2 does not have a Wifi + "riscv32imac-esp-espidf" => &[Chip::ESP32C6, Chip::ESP32C5, Chip::ESP32H2], "riscv32imafc-esp-espidf" => &[Chip::ESP32P4], _ => bail!("Unsupported target '{}'", rust_target_triple), };