Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: flashrom.c

Issue 6025013: Add flashmap (fmap) support to Flashrom (Closed) Base URL: svn://coreboot.org/flashrom/trunk
Patch Set: remove a superfluous debug message Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « flash.h ('k') | fmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flashrom.c
diff --git a/flashrom.c b/flashrom.c
index 436f8d3a5a612fe3f62392498ab26c17b3296a02..5353f2abb2010eff6b4449f69e57dec0c71b7dd6 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1897,6 +1897,12 @@ int doit(struct flashchip *flash, int force, char *filename, int read_it, int wr
if (flash->unlock)
flash->unlock(flash);
+ /* add entries for regions specified in flashmap */
+ if (add_fmap_entries(flash) < 0) {
+ ret = 1;
+ goto out_nofree;
+ }
+
/* mark entries included using -i argument as "included" if they are
found in the master rom_entries list */
if (process_include_args() < 0) {
« no previous file with comments | « flash.h ('k') | fmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698