1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-06-30 21:52:36 +02:00

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>
This commit is contained in:
Uwe Hermann
2009-05-16 23:42:17 +00:00
parent 09e04f74c3
commit 05fab75d73
4 changed files with 196 additions and 66 deletions

View File

@ -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]);