mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
cli_classic.c: add -x option for do_extract()
This change introduces a new option to extract all layout regions to files with the name of each region (or with the provided filename via -i region:file). It is implemented by mutating the flash layout to include all regions and backfilling the entry->file with entry->name (replacing spaces with underscores) Signed-off-by: Daniel Campello <campello@chromium.org> Change-Id: I8c69223fa92cf5b50abe070f1ab9f19d3b42f6ff Reviewed-on: https://review.coreboot.org/c/flashrom/+/52450 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
0969e43b3f
commit
ce983bccaa
1
layout.h
1
layout.h
@ -69,5 +69,6 @@ int process_include_args(struct flashrom_layout *l, const struct layout_include_
|
||||
const struct romentry *layout_next_included_region(const struct flashrom_layout *, chipoff_t);
|
||||
const struct romentry *layout_next_included(const struct flashrom_layout *, const struct romentry *);
|
||||
int included_regions_overlap(const struct flashrom_layout *const flashrom_layout);
|
||||
void prepare_layout_for_extraction(struct flashrom_flashctx *flash);
|
||||
|
||||
#endif /* !__LAYOUT_H__ */
|
||||
|
Reference in New Issue
Block a user