File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,15 @@ fn save_image(
410
410
. or ( build_ctx. partition_table_path . as_deref ( ) )
411
411
. map ( |p| p. to_path_buf ( ) ) ;
412
412
413
+ // Since we have no `Flasher` instance and as such cannot print the board
414
+ // information, we will print whatever information we _do_ have.
415
+ println ! ( "Chip type: {}" , args. save_image_args. chip) ;
416
+ if let Some ( format) = args. format {
417
+ println ! ( "Image format: {:?}" , format) ;
418
+ }
419
+ println ! ( "Merge: {}" , args. save_image_args. merge) ;
420
+ println ! ( "Skip padding: {}" , args. save_image_args. skip_padding) ;
421
+
413
422
save_elf_as_image (
414
423
args. save_image_args . chip ,
415
424
& elf_data,
Original file line number Diff line number Diff line change @@ -166,6 +166,15 @@ fn save_image(args: SaveImageArgs) -> Result<()> {
166
166
. into_diagnostic ( )
167
167
. wrap_err_with ( || format ! ( "Failed to open image {}" , args. image. display( ) ) ) ?;
168
168
169
+ // Since we have no `Flasher` instance and as such cannot print the board
170
+ // information, we will print whatever information we _do_ have.
171
+ println ! ( "Chip type: {}" , args. save_image_args. chip) ;
172
+ if let Some ( format) = args. format {
173
+ println ! ( "Image format: {:?}" , format) ;
174
+ }
175
+ println ! ( "Merge: {}" , args. save_image_args. merge) ;
176
+ println ! ( "Skip padding: {}" , args. save_image_args. skip_padding) ;
177
+
169
178
save_elf_as_image (
170
179
args. save_image_args . chip ,
171
180
& elf_data,
You can’t perform that action at this time.
0 commit comments