summaryrefslogtreecommitdiffstats
path: root/common/file-list.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-09 16:01:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-17 11:04:44 +0100
commit1930c3d11d7126d511b06b1131cea8d42218d820 (patch)
treea472369736a7a2d7279d2333e53ca5c9d40c66be /common/file-list.c
parentc5ebb4d5b4a8612c8c16ae4545e2ffa4aeb6c7b1 (diff)
downloadbarebox-1930c3d11d7126d511b06b1131cea8d42218d820.tar.gz
barebox-1930c3d11d7126d511b06b1131cea8d42218d820.tar.xz
file_list: Add ubi flag
This flag is added to better support flashing UBI image with Android sparse images. Android fastboot splits images which are bigger than the free memory into multiple images which are then transferred in multiple fastboot sessions. In a session which is not the first one we can no longer detect if an image is a UBI image or not, so we need a flag to make this explicit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/file-list.c')
-rw-r--r--common/file-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/file-list.c b/common/file-list.c
index 8d61b76cbb..eb469cf9be 100644
--- a/common/file-list.c
+++ b/common/file-list.c
@@ -92,6 +92,9 @@ static int file_list_parse_one(struct file_list *files, const char *partstr, con
case 'c':
flags |= FILE_LIST_FLAG_CREATE;
break;
+ case 'u':
+ flags |= FILE_LIST_FLAG_UBI;
+ break;
default:
pr_err("Unknown flag '%c'\n", *partstr);
return -EINVAL;