Skip to content

Commit 878e3e2

Browse files
committed
feat: ✨ Add support for esp32c6
1 parent bc1d49f commit 878e3e2

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Options:
154154
With this option, espup will skip GCC installation (it will be handled by esp-idf-sys), hence you won't be able to build no_std applications.
155155
156156
-t, --targets <TARGETS>
157-
Comma or space separated list of targets [esp32,esp32s2,esp32s3,esp32c2,esp32c3,all]
157+
Comma or space separated list of targets [esp32,esp32s2,esp32s3,esp32c2,esp32c3,esp32c6,all]
158158
159159
[default: all]
160160

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub struct InstallOpts {
8585
/// With this option, espup will skip GCC installation (it will be handled by esp-idf-sys), hence you won't be able to build no_std applications.
8686
#[arg(short = 's', long)]
8787
pub std: bool,
88-
/// Comma or space separated list of targets [esp32,esp32s2,esp32s3,esp32c2,esp32c3,all].
88+
/// Comma or space separated list of targets [esp32,esp32s2,esp32s3,esp32c2,esp32c3,esp32c6,all].
8989
#[arg(short = 't', long, default_value = "all", value_parser = parse_targets)]
9090
pub targets: HashSet<Target>,
9191
/// Xtensa Rust toolchain version.

src/targets.rs

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ pub enum Target {
2323
ESP32C2,
2424
/// RISC-V based single core
2525
ESP32C3,
26+
/// RISC-V based single core
27+
ESP32C6,
2628
}
2729

2830
impl Target {
@@ -88,6 +90,7 @@ mod tests {
8890
Target::ESP32S3,
8991
Target::ESP32C2,
9092
Target::ESP32C3,
93+
Target::ESP32C6,
9194
]
9295
.into_iter()
9396
.collect();

src/toolchain/gcc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn get_gcc_name(target: &Target) -> String {
156156
Target::ESP32 => ESP32_GCC,
157157
Target::ESP32S2 => ESP32S2_GCC,
158158
Target::ESP32S3 => ESP32S3_GCC,
159-
Target::ESP32C2 | Target::ESP32C3 => RISCV_GCC,
159+
Target::ESP32C2 | Target::ESP32C3 | Target::ESP32C6 => RISCV_GCC,
160160
};
161161
toolchain.to_string()
162162
}

0 commit comments

Comments
 (0)