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

Fix assorted documentation, frontend and printing bugs

Change the command line interface to make file names positional.
Add more sanity checks to the command line parser.

Corresponding to flashrom svn r998.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
Carl-Daniel Hailfinger
2010-05-15 15:04:37 +00:00
parent 316a29f33f
commit 8841d3e703
7 changed files with 199 additions and 108 deletions

View File

@ -25,6 +25,7 @@
#include "flash.h"
#include "flashchips.h"
#if INTERNAL_SUPPORT == 1
struct board_info_url {
const char *vendor;
const char *name;
@ -36,6 +37,7 @@ struct board_info_notes {
const char *name;
const char *note;
};
#endif
const char *wiki_header = "= Supported devices =\n\n\
<div style=\"margin-top:0.5em; padding:0.5em 0.5em 0.5em 0.5em; \
@ -44,6 +46,7 @@ Please do '''not''' edit these tables in the wiki directly, they are \
generated by pasting '''flashrom -z''' output.<br />\
'''Last update:''' %s(generated by flashrom %s)\n</small></div>\n";
#if INTERNAL_SUPPORT == 1
const char *chipset_th = "{| border=\"0\" style=\"font-size: smaller\"\n\
|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
! align=\"left\" | Southbridge\n! align=\"left\" | PCI IDs\n\
@ -69,6 +72,7 @@ or may not be added later.\n\n\
Mainboards which don't appear in the list may or may not work (we don't \
know, someone has to give it a try). Please report any further verified \
mainboards on the [[Mailinglist|mailing list]].\n";
#endif
const char *chip_th = "{| border=\"0\" style=\"font-size: smaller\" \
valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
@ -85,6 +89,7 @@ smaller\" valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
! align=\"left\" | Device\n! align=\"left\" | PCI IDs\n\
! align=\"left\" | Status\n\n";
#if INTERNAL_SUPPORT == 1
const char *laptop_intro = "\n== Supported laptops/notebooks ==\n\n\
In general, flashing laptops is more difficult because laptops\n\n\
* often use the flash chip for stuff besides the BIOS,\n\
@ -505,6 +510,7 @@ void print_supported_boards_wiki(void)
wiki_helper("Known good (worked out of the box)", "OK", 1, laptops_ok);
wiki_helper("Not supported (yet)", "No", 1, laptops_bad);
}
#endif
void print_supported_chips_wiki(void)
{
@ -576,9 +582,11 @@ void print_supported_wiki(void)
time_t t = time(NULL);
printf(wiki_header, ctime(&t), flashrom_version);
#if INTERNAL_SUPPORT == 1
print_supported_chips_wiki();
print_supported_chipsets_wiki();
print_supported_boards_wiki();
#endif
printf("%s", programmer_section);
#if NIC3COM_SUPPORT == 1
print_supported_pcidevs_wiki(nics_3com);