diff options
| author | Daniel Rosenberg <drosen@google.com> | 2014-04-29 13:54:19 -0700 |
|---|---|---|
| committer | JP Abgrall <jpa@google.com> | 2014-05-06 12:28:41 -0700 |
| commit | 73a4ad288ffdabfbdac0930737def7fdcf65d07c (patch) | |
| tree | abdde36391248fba679e744df385995c5ded77d1 /fastboot | |
| parent | 82280594ef7e9dc908aa67f3da8661ff54a96c9e (diff) | |
| download | system_core-73a4ad288ffdabfbdac0930737def7fdcf65d07c.tar.gz system_core-73a4ad288ffdabfbdac0930737def7fdcf65d07c.tar.bz2 system_core-73a4ad288ffdabfbdac0930737def7fdcf65d07c.zip | |
fastboot: Added tos as an optional image
Change-Id: Ibff1f74ee4a949501ceae0b897f896067f022763
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Diffstat (limited to 'fastboot')
| -rw-r--r-- | fastboot/fastboot.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 79d016686..f98268e4f 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c @@ -100,10 +100,11 @@ static struct { char sig_name[13]; char part_name[9]; bool is_optional; -} images[3] = { +} images[4] = { {"boot.img", "boot.sig", "boot", false}, {"recovery.img", "recovery.sig", "recovery", true}, {"system.img", "system.sig", "system", false}, + {"tos.img", "tos.sig", "tos", true}, }; void get_my_path(char *path); @@ -120,6 +121,8 @@ char *find_item(const char *item, const char *product) fn = "recovery.img"; } else if(!strcmp(item,"system")) { fn = "system.img"; + } else if(!strcmp(item,"tos")) { + fn = "tos.img"; } else if(!strcmp(item,"userdata")) { fn = "userdata.img"; } else if(!strcmp(item,"cache")) { @@ -285,7 +288,7 @@ void usage(void) "\n" "commands:\n" " update <filename> reflash device from update.zip\n" - " flashall flash boot + recovery + system\n" + " flashall flash boot, system, and if found, recovery, tos\n" " flash <partition> [ <filename> ] write a file to a flash partition\n" " erase <partition> erase a flash partition\n" " format <partition> format a flash partition \n" |
