summaryrefslogtreecommitdiffstats
path: root/cbtable.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-30 13:30:17 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2009-07-30 13:30:17 +0000
commitbc25f947fe9a365ba89fac19bd24c377c10243aa (patch)
tree50e1d66441dcc18b74aa192c51aac257fe51548f /cbtable.c
parent350a0c348e7ca0e3c18add2d6db17a020e76f86e (diff)
downloadast2050-flashrom-bc25f947fe9a365ba89fac19bd24c377c10243aa.zip
ast2050-flashrom-bc25f947fe9a365ba89fac19bd24c377c10243aa.tar.gz
Boards with coreboot have a cbtable containing vendor and board name
Flashrom tries to match these with board enable entries in its database. If no such board enable entry exists because the board doesn't need one, flashrom complains. Silence that complaint. Corresponding to flashrom svn r668. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Slightly updated and Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'cbtable.c')
-rw-r--r--cbtable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cbtable.c b/cbtable.c
index 4bcfa88..10fe494 100644
--- a/cbtable.c
+++ b/cbtable.c
@@ -31,6 +31,7 @@
#include "coreboot_tables.h"
char *lb_part = NULL, *lb_vendor = NULL;
+int partvendor_from_cbtable = 0;
static unsigned long compute_checksum(void *addr, unsigned long length)
{
@@ -150,6 +151,7 @@ static void find_mainboard(struct lb_record *ptr, unsigned long addr)
if (lb_part) {
printf("Overwritten by command line, vendor ID: %s, part ID: %s.\n", lb_vendor, lb_part);
} else {
+ partvendor_from_cbtable = 1;
lb_part = strdup(part);
lb_vendor = strdup(vendor);
}
OpenPOWER on IntegriCloud