File tree Expand file tree Collapse file tree 4 files changed +2
-30
lines changed
Expand file tree Collapse file tree 4 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ runner = "espflash flash --monitor"
88[env ]
99ESP_IDF_SYS_ROOT_CRATE = " blackbox"
1010MCU = " esp32c3"
11- # Partition table - use relative path from sensors/blackbox
12- ESP_IDF_PART_TABLE_FILE = { value = " partitions.csv" , relative = true }
1311
1412[unstable ]
1513build-std = [" std" , " panic_abort" ]
Original file line number Diff line number Diff line change 1- use std:: { env, fs, path:: PathBuf } ;
2-
31fn 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}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# ESP32-C3 configuration
22CONFIG_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
98CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
You can’t perform that action at this time.
0 commit comments