File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
+ - Allow ` partition_table_offset ` to be specified in the config file. (for #699 )
13
+
12
14
### Changed
13
15
14
16
### Fixed
Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ pub struct Config {
87
87
/// Partition table path
88
88
#[ serde( default ) ]
89
89
pub partition_table : Option < PathBuf > ,
90
+ /// Partition table offset
91
+ #[ serde( default ) ]
92
+ pub partition_table_offset : Option < u32 > ,
90
93
/// Preferred USB devices
91
94
#[ serde( default ) ]
92
95
pub usb_device : Vec < UsbDevice > ,
Original file line number Diff line number Diff line change @@ -826,6 +826,10 @@ pub fn make_flash_data(
826
826
. or ( config. partition_table . as_deref ( ) )
827
827
. or ( default_partition_table) ;
828
828
829
+ let partition_table_offset = image_args
830
+ . partition_table_offset
831
+ . or ( config. partition_table_offset ) ;
832
+
829
833
if let Some ( path) = & bootloader {
830
834
println ! ( "Bootloader: {}" , path. display( ) ) ;
831
835
}
@@ -837,7 +841,7 @@ pub fn make_flash_data(
837
841
FlashData :: new (
838
842
bootloader,
839
843
partition_table,
840
- image_args . partition_table_offset ,
844
+ partition_table_offset,
841
845
image_args. target_app_partition ,
842
846
flash_settings,
843
847
image_args. min_chip_rev ,
You can’t perform that action at this time.
0 commit comments