diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-08-25 19:21:42 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-08-25 19:21:42 +0000 |
commit | 051427c40a626a67b58ab11f0ab12e8b1e3d658c (patch) | |
tree | 3a7086f2ed7b00e1302570e26bc8e7bf86d35dff | |
parent | fa60e7f9d06d9a54e8bcc9e6f90eb3bc6ae4095e (diff) | |
download | coreboot-051427c40a626a67b58ab11f0ab12e8b1e3d658c.tar.xz |
Print a warning if southbridge is not known to flashrom.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2390 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | util/flashrom/README | 2 | ||||
-rw-r--r-- | util/flashrom/flash_enable.c | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/util/flashrom/README b/util/flashrom/README index 32c401aa28..e745608912 100644 --- a/util/flashrom/README +++ b/util/flashrom/README @@ -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/util/flashrom/flash_enable.c b/util/flashrom/flash_enable.c index ccd670a926..e110f2a604 100644 --- a/util/flashrom/flash_enable.c +++ b/util/flashrom/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; } |