1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

Fix wiki board enable parameter printing

The logic was incorrect in one place which had && instead of ||. Move
the board info #define B to the file where it is used.

Corresponding to flashrom svn r1035.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Carl-Daniel Hailfinger 2010-06-07 11:10:43 +00:00
parent e2f015836c
commit 4146cedae4
3 changed files with 10 additions and 9 deletions

View File

@ -309,12 +309,6 @@ struct board_info {
#endif
};
#ifdef CONFIG_PRINT_WIKI
#define B(vendor, name, status, url, note) { vendor, name, status, url, note }
#else
#define B(vendor, name, status, url, note) { vendor, name, status }
#endif
extern const struct board_info boards_known[];
extern const struct board_info laptops_known[];

View File

@ -245,6 +245,13 @@ void print_supported(void)
}
#if CONFIG_INTERNAL == 1
#ifdef CONFIG_PRINT_WIKI
#define B(vendor, name, status, url, note) { vendor, name, status, url, note }
#else
#define B(vendor, name, status, url, note) { vendor, name, status }
#endif
/* Please keep this list alphabetically ordered by vendor/board. */
const struct board_info boards_known[] = {
#if defined(__i386__) || defined(__x86_64__)

View File

@ -145,9 +145,9 @@ static void wiki_helper(const char *devicetype, int cols,
color = !color;
k = 0;
while ((b[k].vendor_name != NULL)
&& strcmp(b[k].vendor_name, boards[i].vendor)
&& strcmp(b[k].board_name, boards[i].name)) {
while ((b[k].vendor_name != NULL) &&
(strcmp(b[k].vendor_name, boards[i].vendor) ||
strcmp(b[k].board_name, boards[i].name))) {
k++;
}