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

Unified Diff: cli_mfg.c

Issue 6791005: Supports --ignore-fmap argument to skip parsing fmap structure on flash. (Closed) Base URL: ssh://gitrw.chromium.org:9222/flashrom.git@master
Patch Set: 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 | « no previous file | flash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cli_mfg.c
diff --git a/cli_mfg.c b/cli_mfg.c
index 9653895265173b4949c482358eedf35f218f59e6..fec9a1aeeb4fed82b59695c8b0adaf8010454352 100644
--- a/cli_mfg.c
+++ b/cli_mfg.c
@@ -37,6 +37,9 @@
#define LOCK_TIMEOUT_SECS 30
+/* This variable is shared with doit() in flashrom.c */
+int set_ignore_fmap = 0;
+
void cli_mfg_usage(const char *name)
{
const char *pname;
@@ -93,6 +96,8 @@ void cli_mfg_usage(const char *name)
#endif
" -p | --programmer <name>[:<param>] specify the programmer "
"device"
+ " --ignore-fmap don't try to parse the "
+ "fmap structure on the flash\n"
);
for (p = 0; p < PROGRAMMER_INVALID; p++) {
@@ -150,6 +155,7 @@ enum LONGOPT_RETURN_VALUES {
LONGOPT_WP_ENABLE,
LONGOPT_WP_DISABLE,
LONGOPT_WP_LIST,
+ LONGOPT_IGNORE_FMAP,
};
int cli_mfg(int argc, char *argv[])
@@ -197,6 +203,7 @@ int cli_mfg(int argc, char *argv[])
{"wp-enable", 0, 0, LONGOPT_WP_ENABLE},
{"wp-disable", 0, 0, LONGOPT_WP_DISABLE},
{"wp-list", 0, 0, LONGOPT_WP_LIST},
+ {"ignore-fmap", 0, 0, LONGOPT_IGNORE_FMAP},
{0, 0, 0, 0}
};
@@ -386,6 +393,9 @@ int cli_mfg(int argc, char *argv[])
case LONGOPT_WP_DISABLE:
set_wp_disable = 1;
break;
+ case LONGOPT_IGNORE_FMAP:
+ set_ignore_fmap = 1;
+ break;
default:
cli_mfg_abort_usage(argv[0]);
break;
« no previous file with comments | « no previous file | flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698