1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

Case insensitive matching of vendor:board strings in coreboot table

Needed at least for GIGABYTE:m57sli in coreboot to match gigabyte:m57sli in
flashrom.

Corresponding to flashrom svn r286 and coreboot v2 svn r3402.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
Peter Stuge 2008-07-02 00:47:30 +00:00
parent 2cb94e183b
commit 0b9c5f3d89

View File

@ -648,10 +648,10 @@ static struct board_pciid_enable *board_match_coreboot_name(const char *vendor,
struct board_pciid_enable *partmatch = NULL;
for (; board->name; board++) {
if (vendor && (!board->lb_vendor || strcmp(board->lb_vendor, vendor)))
if (vendor && (!board->lb_vendor || strcasecmp(board->lb_vendor, vendor)))
continue;
if (!board->lb_part || strcmp(board->lb_part, part))
if (!board->lb_part || strcasecmp(board->lb_part, part))
continue;
if (!pci_dev_find(board->first_vendor, board->first_device))
@ -678,8 +678,7 @@ static struct board_pciid_enable *board_match_coreboot_name(const char *vendor,
if (partmatch)
return partmatch;
printf("NOT FOUND %s:%s\n", vendor, part);
printf("\nUnknown vendor:board in coreboot table: %s:%s\n\n", vendor, part);
return NULL;
}