summaryrefslogtreecommitdiff
path: root/scripts/update_payload/common.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2015-10-15 09:14:58 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-15 19:57:01 -0700
commitef49735f40d0319151fd1e50abdbe377ab49ce72 (patch)
tree3929a7224c23f8d899255a1644aa554f0fa02a3f /scripts/update_payload/common.py
parentbe5aa57d5ecb1a0ef53aaa57a67d862f72915b8e (diff)
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 <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'scripts/update_payload/common.py')
-rw-r--r--scripts/update_payload/common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/update_payload/common.py b/scripts/update_payload/common.py
index 9d008a95..38d949b4 100644
--- a/scripts/update_payload/common.py
+++ b/scripts/update_payload/common.py
@@ -21,6 +21,9 @@ SIG_ASN1_HEADER = (
'\x00\x04\x20'
)
+CHROMEOS_MAJOR_PAYLOAD_VERSION = 1
+BRILLO_MAJOR_PAYLOAD_VERSION = 2
+
INPLACE_MINOR_PAYLOAD_VERSION = 1
SOURCE_MINOR_PAYLOAD_VERSION = 2