summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c19
1 files changed, 12 insertions, 7 deletions
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]);
OpenPOWER on IntegriCloud