diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2006-08-25 19:21:42 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@coresystems.de> | 2006-08-25 19:21:42 +0000 |
commit | b1104b07da33b31a155093b1432a7d5c0fe7aa63 (patch) | |
tree | de025b984a36319b3ceb4938d5b729df7f71b36a | |
parent | 82953f0a45a3434c52b717e93e2b283eaafbb596 (diff) | |
download | flashrom-b1104b07da33b31a155093b1432a7d5c0fe7aa63.zip flashrom-b1104b07da33b31a155093b1432a7d5c0fe7aa63.tar.gz |
Print a warning if southbridge is not known
Corresponding to flashrom svn r61 and coreboot v2 svn r2390.
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | flash_enable.c | 14 |
2 files changed, 10 insertions, 6 deletions
@@ -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. diff --git a/flash_enable.c b/flash_enable.c index ccd670a..e110f2a 100644 --- a/flash_enable.c +++ b/flash_enable.c @@ -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; } |