diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-10-01 17:03:42 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-13 11:42:13 -0700 |
commit | 7db7a6db8f0719fe0fda8219c7111c7caf0b4546 (patch) | |
tree | b0492521037e1082220794315d12f9089c201cfa /futility/updater_quirks.c | |
parent | 66381ae51d7da4a385b5898473d3ccaa8ee20c11 (diff) | |
download | vboot-7db7a6db8f0719fe0fda8219c7111c7caf0b4546.tar.gz |
futility: updater: Add '--archive' to read from an archive or directory
A firmware update is usually released as a package with multiple images,
instructions, signed vblocks and other files. To work with that, a new
argument '--archive' is added.
The --archive accepts a directory or file, and will determine the
correct driver automatically. For resources (for example --image) in
relative path, updater should find files from archive.
Note in current implementation, only ZIP is supported for file type
drivers (and need the system to have libzip already installed).
BUG=chromium:875551
TEST=TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility
BRANCH=None
Change-Id: I6a91cbe73fb4ee203c5fa4607f6651a39ba854d5
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1253229
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'futility/updater_quirks.c')
-rw-r--r-- | futility/updater_quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/updater_quirks.c b/futility/updater_quirks.c index 65d28202..8c924a37 100644 --- a/futility/updater_quirks.c +++ b/futility/updater_quirks.c @@ -58,7 +58,7 @@ static int reload_firmware_image(const char *file_path, struct firmware_image *i const char *programmer = image->programmer; free_firmware_image(image); image->programmer = programmer; - return load_firmware_image(image, file_path); + return load_firmware_image(image, file_path, NULL); } /* |