[LinuxBIOS] r2390 - trunk/LinuxBIOSv2/util/flashrom
svn at openbios.org
svn at openbios.org
Fri Aug 25 21:21:42 CEST 2006
Author: stepan
Date: 2006-08-25 21:21:42 +0200 (Fri, 25 Aug 2006)
New Revision: 2390
Modified:
trunk/LinuxBIOSv2/util/flashrom/README
trunk/LinuxBIOSv2/util/flashrom/flash_enable.c
Log:
Print a warning if southbridge is not known to flashrom.
Modified: trunk/LinuxBIOSv2/util/flashrom/README
===================================================================
--- trunk/LinuxBIOSv2/util/flashrom/README 2006-08-25 16:14:31 UTC (rev 2389)
+++ trunk/LinuxBIOSv2/util/flashrom/README 2006-08-25 19:21:42 UTC (rev 2390)
@@ -77,6 +77,6 @@
-----------
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.
Modified: trunk/LinuxBIOSv2/util/flashrom/flash_enable.c
===================================================================
--- trunk/LinuxBIOSv2/util/flashrom/flash_enable.c 2006-08-25 16:14:31 UTC (rev 2389)
+++ trunk/LinuxBIOSv2/util/flashrom/flash_enable.c 2006-08-25 19:21:42 UTC (rev 2390)
@@ -506,11 +506,15 @@
}
}
+ if (!enable) {
+ printf("Warning: Unknown system. Flash detection "
+ "will most likely fail.\n");
+ return 1;
+ }
+
/* now do the deed. */
- if (enable) {
- printf("Enabling flash write on %s...", enable->name);
- if (enable->doit(dev, enable->name) == 0)
- printf("OK\n");
- }
+ printf("Enabling flash write on %s...", enable->name);
+ if (enable->doit(dev, enable->name) == 0)
+ printf("OK\n");
return 0;
}
More information about the coreboot
mailing list