diff options
author | Tudor Brindus <tbrindus@chromium.org> | 2018-06-14 11:18:18 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-21 19:56:28 -0700 |
commit | 8d05a7e15bfcc4f551a0f59be6d0d1eb083887e9 (patch) | |
tree | 58b34442de114857e332245ee8a8128b8e5fec15 /scripts/update_payload/common.py | |
parent | 8b936f277f447d53e1c578d22bc7171a939473c7 (diff) |
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 <tbrindus@chromium.org>
Tested-by: Tudor Brindus <tbrindus@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'scripts/update_payload/common.py')
-rw-r--r-- | scripts/update_payload/common.py | 4 |
1 files changed, 4 insertions, 0 deletions
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. # |