summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index e1121d86e..0af505757 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -2695,6 +2695,12 @@ int do_read(struct flashctx *const flash, const char *const filename)
return ret;
}
+int do_extract(struct flashctx *const flash)
+{
+ prepare_layout_for_extraction(flash);
+ return do_read(flash, NULL);
+}
+
int do_erase(struct flashctx *const flash)
{
const int ret = flashrom_flash_erase(flash);