commit | ef49735f40d0319151fd1e50abdbe377ab49ce72 | [log] [tgz] |
---|---|---|
author | Alex Deymo <[email protected]> | Thu Oct 15 09:14:58 2015 -0700 |
committer | chrome-bot <[email protected]> | Thu Oct 15 19:57:01 2015 -0700 |
tree | 3929a7224c23f8d899255a1644aa554f0fa02a3f | |
parent | be5aa57d5ecb1a0ef53aaa57a67d862f72915b8e [diff] [blame] |
Parse Payload v2 header. The update payload v2 contains an extra field in the header with the size of the metadata signatures and the metadata signatures stored right after the metadata. This patch parses the new payload format. BUG=b:22024447 TEST=cros payload show payload-v2.bin; served a payload v2 with devserver.py Change-Id: I8ce85af1df505f82f62a9d1cd57910cee6921f84 Reviewed-on: https://chromium-review.googlesource.com/306090 Commit-Ready: Alex Deymo <[email protected]> Tested-by: Alex Deymo <[email protected]> Reviewed-by: Gilad Arnold <[email protected]>
diff --git a/scripts/update_payload/common.py b/scripts/update_payload/common.py index 9d008a9..38d949b 100644 --- a/scripts/update_payload/common.py +++ b/scripts/update_payload/common.py
@@ -21,6 +21,9 @@ '\x00\x04\x20' ) +CHROMEOS_MAJOR_PAYLOAD_VERSION = 1 +BRILLO_MAJOR_PAYLOAD_VERSION = 2 + INPLACE_MINOR_PAYLOAD_VERSION = 1 SOURCE_MINOR_PAYLOAD_VERSION = 2