From 8d05a7e15bfcc4f551a0f59be6d0d1eb083887e9 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Thu, 14 Jun 2018 11:18:18 -0700 Subject: update_payload: De-duplicate paycheck partition handling for major version 2 This commit makes handling of major version 2 rootfs/kernel partitions more generic, with the goal of reusing the same code paths for major version 2 (which has an arbitrary number of partitions per payload). BUG=b:794404 TEST=no errors during run_unittests and test_paycheck.sh Change-Id: Ic6e8cdaae557c10dfbd302dba0e52ff8b2870c9f Reviewed-on: https://chromium-review.googlesource.com/1101500 Commit-Ready: Tudor Brindus Tested-by: Tudor Brindus Reviewed-by: Amin Hassani --- scripts/update_payload/common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/update_payload/common.py') diff --git a/scripts/update_payload/common.py b/scripts/update_payload/common.py index 4e7b2e31..88df32ea 100644 --- a/scripts/update_payload/common.py +++ b/scripts/update_payload/common.py @@ -42,6 +42,10 @@ OPSRCHASH_MINOR_PAYLOAD_VERSION = 3 BROTLI_BSDIFF_MINOR_PAYLOAD_VERSION = 4 PUFFDIFF_MINOR_PAYLOAD_VERSION = 5 +KERNEL = 'kernel' +ROOTFS = 'rootfs' +CROS_PARTITIONS = (KERNEL, ROOTFS) + # # Payload operation types. # -- cgit v1.2.3