aboutsummaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.h
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-05-07 20:25:24 -0700
committerJP Abgrall <jpa@google.com>2012-05-07 20:25:24 -0700
commit30ae5806e920cb824d019defd856068f09dd0db6 (patch)
tree634b3da5e3379fd3a8f14d878e9c4983c5ad28d8 /fastboot/fastboot.h
parent0e92b50f0fb432c45b26863394e473916b0ab4ef (diff)
downloadsystem_core-30ae5806e920cb824d019defd856068f09dd0db6.tar.gz
system_core-30ae5806e920cb824d019defd856068f09dd0db6.tar.bz2
system_core-30ae5806e920cb824d019defd856068f09dd0db6.zip
fastboot: Change -w to format after the erase of userdata & cache
If the bootloader doesn't support formatting of those partitions (either because it doesn't support the getvar commands needed or the partition type is not supported), the errors are printed but doesn't halt processing of subsequent commands. Change-Id: I816ac2e5e7593846fcb4fd39c793a8dbdd996f6f Signed-off-by: Mike J. Chen <mjchen@google.com>
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r--fastboot/fastboot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h
index 7d56ecbb..1d3e2b82 100644
--- a/fastboot/fastboot.h
+++ b/fastboot/fastboot.h
@@ -43,7 +43,7 @@ char *fb_get_error(void);
/* engine.c - high level command queue engine */
void fb_queue_flash(const char *ptn, void *data, unsigned sz);;
void fb_queue_erase(const char *ptn);
-void fb_queue_format(const char *ptn);
+void fb_queue_format(const char *ptn, int skip_if_not_supported);
void fb_queue_require(const char *prod, const char *var, int invert,
unsigned nvalues, const char **value);
void fb_queue_display(const char *var, const char *prettyname);