From 05fab75d73019f430c16ad9a9d3800f8e7e40173 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 16 May 2009 23:42:17 +0000 Subject: List all boards which are - Supported out of the box (no flash enables required) - Verifiably not yet working (unknown flash enable) Also, move some structs to flash.h in preparation for later wiki output support. Corresponding to flashrom svn r523. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann --- flashrom.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index cd16d71..925b05b 100644 --- a/flashrom.c +++ b/flashrom.c @@ -399,6 +399,7 @@ int main(int argc, char *argv[]) int option_index = 0; int force = 0; int read_it = 0, write_it = 0, erase_it = 0, verify_it = 0; + int list_supported = 0; int ret = 0, i; static struct option long_options[] = { @@ -491,13 +492,7 @@ int main(int argc, char *argv[]) find_romentry(tempstr); break; case 'L': - print_supported_chips(); - print_supported_chipsets(); - print_supported_boards(); - printf("\nSupported PCI devices flashrom can use " - "as programmer:\n\n"); - print_supported_pcidevs(nics_3com); - exit(0); + list_supported = 1; break; case 'p': if (strncmp(optarg, "internal", 8) == 0) { @@ -524,6 +519,16 @@ int main(int argc, char *argv[]) } } + if (list_supported) { + print_supported_chips(); + print_supported_chipsets(); + print_supported_boards(); + printf("\nSupported PCI devices flashrom can use " + "as programmer:\n\n"); + print_supported_pcidevs(nics_3com); + exit(0); + } + if (read_it && write_it) { printf("Error: -r and -w are mutually exclusive.\n"); usage(argv[0]); -- cgit v1.1