mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-05 07:40:40 +02:00
Revert "libflashrom: Return progress state to the library user"
This reverts commit 40892b0c08
.
The feature of returning progress for libflashrom users was
introduced in original commit, however later a bug was found and
reported as https://ticket.coreboot.org/issues/390.
Reverting in a release branch to unblock release candidate, since
it is unknown how much time needed to fix the bug. Meanwhile the
feature remains in a master branch and will be fixed under
ticket 390.
TEST=scenarios below run successfully
1) flashrom -h does not show --progress
2) flashrom -p dummy:emulate=W25Q128FV -r /tmp/dump.bin
3) flashrom -p dummy:emulate=W25Q128FV -v /tmp/dump.bin
4) flashrom -p dummy:emulate=W25Q128FV -E
5) head -c 16777216 </dev/urandom >/tmp/image.bin
flashrom -p dummy:image=/tmp/image.bin,emulate=W25Q128FV \
-w /tmp/dump.bin
Change-Id: Id3d7ffcaf266a60a44eb453fd09b7c63c05349c2
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69283
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:

committed by
Felix Singer

parent
664c58f32a
commit
00635b0da2
@ -79,7 +79,6 @@ static void cli_classic_usage(const char *name)
|
||||
#if CONFIG_PRINT_WIKI == 1
|
||||
" -z | --list-supported-wiki print supported devices in wiki syntax\n"
|
||||
#endif
|
||||
" --progress show progress percentage on the standard output\n"
|
||||
" -p | --programmer <name>[:<param>] specify the programmer device. One of\n");
|
||||
list_programmers_linebreak(4, 80, 0);
|
||||
printf(".\n\nYou can specify one of -h, -R, -L, "
|
||||
@ -580,7 +579,6 @@ int main(int argc, char *argv[])
|
||||
bool read_it = false, extract_it = false, write_it = false, erase_it = false, verify_it = false;
|
||||
bool dont_verify_it = false, dont_verify_all = false;
|
||||
bool list_supported = false;
|
||||
bool show_progress = false;
|
||||
struct flashrom_layout *layout = NULL;
|
||||
static const struct programmer_entry *prog = NULL;
|
||||
enum {
|
||||
@ -596,7 +594,6 @@ int main(int argc, char *argv[])
|
||||
OPTION_WP_ENABLE,
|
||||
OPTION_WP_DISABLE,
|
||||
OPTION_WP_LIST,
|
||||
OPTION_PROGRESS,
|
||||
};
|
||||
int ret = 0;
|
||||
|
||||
@ -633,7 +630,6 @@ int main(int argc, char *argv[])
|
||||
{"help", 0, NULL, 'h'},
|
||||
{"version", 0, NULL, 'R'},
|
||||
{"output", 1, NULL, 'o'},
|
||||
{"progress", 0, NULL, OPTION_PROGRESS},
|
||||
{NULL, 0, NULL, 0},
|
||||
};
|
||||
|
||||
@ -874,9 +870,6 @@ int main(int argc, char *argv[])
|
||||
cli_classic_abort_usage("No log filename specified.\n");
|
||||
}
|
||||
break;
|
||||
case OPTION_PROGRESS:
|
||||
show_progress = true;
|
||||
break;
|
||||
default:
|
||||
cli_classic_abort_usage(NULL);
|
||||
break;
|
||||
@ -1048,13 +1041,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
fill_flash = &flashes[0];
|
||||
|
||||
unsigned int progress_user_data[FLASHROM_PROGRESS_NR];
|
||||
struct flashrom_progress progress_state = {
|
||||
.user_data = progress_user_data
|
||||
};
|
||||
if (show_progress)
|
||||
flashrom_set_progress_callback(fill_flash, &flashrom_progress_cb, &progress_state);
|
||||
|
||||
print_chip_support_status(fill_flash->chip);
|
||||
|
||||
unsigned int limitexceeded = count_max_decode_exceedings(fill_flash);
|
||||
|
Reference in New Issue
Block a user