1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 22:52:34 +02:00

Print a warning if southbridge is not known

Corresponding to flashrom svn r61 and coreboot v2 svn r2390.
This commit is contained in:
Stefan Reinauer 2006-08-25 19:21:42 +00:00
parent 028f46fd2e
commit cbc55d0c29
2 changed files with 10 additions and 6 deletions

2
README
View File

@ -77,6 +77,6 @@ DOC support
-----------
DISK on Chip support is currently disabled since it is considered unstable.
Change CFLAGS in the Makefile to enable it.
Change CFLAGS in the Makefile to enable it: Remove -DDISABLE_DOC from CFLAGS.

View File

@ -506,11 +506,15 @@ int enable_flash_write()
}
}
/* now do the deed. */
if (enable) {
printf("Enabling flash write on %s...", enable->name);
if (enable->doit(dev, enable->name) == 0)
printf("OK\n");
if (!enable) {
printf("Warning: Unknown system. Flash detection "
"will most likely fail.\n");
return 1;
}
/* now do the deed. */
printf("Enabling flash write on %s...", enable->name);
if (enable->doit(dev, enable->name) == 0)
printf("OK\n");
return 0;
}