diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-16 23:42:17 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-16 23:42:17 +0000 |
commit | 05fab75d73019f430c16ad9a9d3800f8e7e40173 (patch) | |
tree | 624f3ce65874af8c557c6e282a11bad7fc026e94 /flashrom.c | |
parent | 09e04f74c3c569427289fefd67157f2ae256d2cc (diff) | |
download | ast2050-flashrom-05fab75d73019f430c16ad9a9d3800f8e7e40173.zip ast2050-flashrom-05fab75d73019f430c16ad9a9d3800f8e7e40173.tar.gz |
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 <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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]); |