From 1930c3d11d7126d511b06b1131cea8d42218d820 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 9 Jan 2018 16:01:59 +0100 Subject: 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 --- common/file-list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/file-list.c') 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; -- cgit v1.2.3