summaryrefslogtreecommitdiffstats
path: root/cli_classic.c
diff options
context:
space:
mode:
authorDaniel Campello <campello@chromium.org>2021-12-06 12:06:09 -0700
committerEdward O'Callaghan <quasisec@chromium.org>2022-01-21 04:50:19 +0000
commitf136a2a69c649c785669496d8bbd04b900724e77 (patch)
tree7c9a7d99a8e5a9b7ceb1e8dff4f5d8fb43892984 /cli_classic.c
parent5df3a33db51fbad531a7a2b6c047863586ac9c42 (diff)
downloadflashrom-f136a2a69c649c785669496d8bbd04b900724e77.tar.gz
flashrom-f136a2a69c649c785669496d8bbd04b900724e77.tar.bz2
flashrom-f136a2a69c649c785669496d8bbd04b900724e77.zip
flashrom.c: extract operation only uses layout files
This change fixes a bug on handling the extract operation. The extract operation reads out the layout regions to filenames corresponding to the respective layout region names. read_flash_to_file() does this work via write_buf_to_include_args(). This change makes the call to write_buf_to_file() optional as it is still required for -r (read operation) but not for -x (extract operation). BUG=b:209512852 TEST=flashrom -x Fixes: commit ce983bccaab450d358854494f15c2d8a1846d56b Change-Id: Ibc9a4e2966385863345f06662521d6d0e4685121 Signed-off-by: Daniel Campello <campello@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/59921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'cli_classic.c')
0 files changed, 0 insertions, 0 deletions