mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 16:03:47 +02:00
Fix copy-paste errors by s/CONFIG_PRINT_WIKI/PRINT_WIKI_SUPPORT/
Trivial, and build-tested. Corresponding to flashrom svn r726. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
parent
9c8476b706
commit
707f1ebec3
12
flashrom.c
12
flashrom.c
@ -581,7 +581,7 @@ void usage(const char *name)
|
|||||||
" -l | --layout <file.layout>: read ROM layout from file\n"
|
" -l | --layout <file.layout>: read ROM layout from file\n"
|
||||||
" -i | --image <name>: only flash image name from flash layout\n"
|
" -i | --image <name>: only flash image name from flash layout\n"
|
||||||
" -L | --list-supported: print supported devices\n"
|
" -L | --list-supported: print supported devices\n"
|
||||||
#if CONFIG_PRINT_WIKI == 1
|
#if PRINT_WIKI_SUPPORT == 1
|
||||||
" -z | --list-supported-wiki: print supported devices in wiki syntax\n"
|
" -z | --list-supported-wiki: print supported devices in wiki syntax\n"
|
||||||
#endif
|
#endif
|
||||||
" -p | --programmer <name>: specify the programmer device");
|
" -p | --programmer <name>: specify the programmer device");
|
||||||
@ -637,13 +637,13 @@ int main(int argc, char *argv[])
|
|||||||
int force = 0;
|
int force = 0;
|
||||||
int read_it = 0, write_it = 0, erase_it = 0, verify_it = 0;
|
int read_it = 0, write_it = 0, erase_it = 0, verify_it = 0;
|
||||||
int dont_verify_it = 0, list_supported = 0;
|
int dont_verify_it = 0, list_supported = 0;
|
||||||
#if CONFIG_PRINT_WIKI == 1
|
#if PRINT_WIKI_SUPPORT == 1
|
||||||
int list_supported_wiki = 0;
|
int list_supported_wiki = 0;
|
||||||
#endif
|
#endif
|
||||||
int operation_specified = 0;
|
int operation_specified = 0;
|
||||||
int ret = 0, i;
|
int ret = 0, i;
|
||||||
|
|
||||||
#if CONFIG_PRINT_WIKI == 1
|
#if PRINT_WIKI_SUPPORT == 1
|
||||||
const char *optstring = "rRwvnVEfc:m:l:i:p:Lzh";
|
const char *optstring = "rRwvnVEfc:m:l:i:p:Lzh";
|
||||||
#else
|
#else
|
||||||
const char *optstring = "rRwvnVEfc:m:l:i:p:Lh";
|
const char *optstring = "rRwvnVEfc:m:l:i:p:Lh";
|
||||||
@ -661,7 +661,7 @@ int main(int argc, char *argv[])
|
|||||||
{"layout", 1, 0, 'l'},
|
{"layout", 1, 0, 'l'},
|
||||||
{"image", 1, 0, 'i'},
|
{"image", 1, 0, 'i'},
|
||||||
{"list-supported", 0, 0, 'L'},
|
{"list-supported", 0, 0, 'L'},
|
||||||
#if CONFIG_PRINT_WIKI == 1
|
#if PRINT_WIKI_SUPPORT == 1
|
||||||
{"list-supported-wiki", 0, 0, 'z'},
|
{"list-supported-wiki", 0, 0, 'z'},
|
||||||
#endif
|
#endif
|
||||||
{"programmer", 1, 0, 'p'},
|
{"programmer", 1, 0, 'p'},
|
||||||
@ -766,7 +766,7 @@ int main(int argc, char *argv[])
|
|||||||
case 'L':
|
case 'L':
|
||||||
list_supported = 1;
|
list_supported = 1;
|
||||||
break;
|
break;
|
||||||
#if CONFIG_PRINT_WIKI == 1
|
#if PRINT_WIKI_SUPPORT == 1
|
||||||
case 'z':
|
case 'z':
|
||||||
list_supported_wiki = 1;
|
list_supported_wiki = 1;
|
||||||
break;
|
break;
|
||||||
@ -827,7 +827,7 @@ int main(int argc, char *argv[])
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_PRINT_WIKI == 1
|
#if PRINT_WIKI_SUPPORT == 1
|
||||||
if (list_supported_wiki) {
|
if (list_supported_wiki) {
|
||||||
print_wiki_tables();
|
print_wiki_tables();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user