Skip to content

Commit 6660c10

Browse files
committed
Fix CI: use default partition table (custom only needed for device)
1 parent acb3c73 commit 6660c10

File tree

4 files changed

+2
-30
lines changed

4 files changed

+2
-30
lines changed

sensors/blackbox/.cargo/config.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ runner = "espflash flash --monitor"
88
[env]
99
ESP_IDF_SYS_ROOT_CRATE = "blackbox"
1010
MCU = "esp32c3"
11-
# Partition table - use relative path from sensors/blackbox
12-
ESP_IDF_PART_TABLE_FILE = { value = "partitions.csv", relative = true }
1311

1412
[unstable]
1513
build-std = ["std", "panic_abort"]

sensors/blackbox/build.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
1-
use std::{env, fs, path::PathBuf};
2-
31
fn main() {
42
// Provide app_main stub for ESP-IDF
53
embuild::espidf::sysenv::output();
64

75
// Declare custom cfg conditions to avoid warnings
86
println!("cargo:rustc-check-cfg=cfg(esp_idf_httpd_ws_support)");
9-
10-
// Copy partition table to the esp-idf-sys output directory
11-
// This is needed because CONFIG_PARTITION_TABLE_CUSTOM_FILENAME is resolved
12-
// relative to the cmake build directory, not the source directory
13-
if let Ok(out_dir) = env::var("OUT_DIR") {
14-
let src = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("partitions.csv");
15-
let dst = PathBuf::from(&out_dir).join("partitions.csv");
16-
17-
if src.exists() {
18-
if let Err(e) = fs::copy(&src, &dst) {
19-
println!("cargo:warning=Failed to copy partitions.csv: {}", e);
20-
} else {
21-
println!("cargo:rerun-if-changed=partitions.csv");
22-
}
23-
}
24-
}
257
}

sensors/blackbox/partitions.csv

Lines changed: 0 additions & 7 deletions
This file was deleted.

sensors/blackbox/sdkconfig.defaults

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# ESP32-C3 configuration
22
CONFIG_IDF_TARGET="esp32c3"
33

4-
# Custom partition table with 2.5 MB app partition (vs 1.5 MB default)
5-
CONFIG_PARTITION_TABLE_CUSTOM=y
6-
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
4+
# Note: Custom partition table (2.5 MB app) is configured in workspace root
5+
# sdkconfig.defaults for local builds. CI uses default partition table.
76

87
# Flash size
98
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y

0 commit comments

Comments
 (0)