diff options
| author | Alex Deymo <deymo@google.com> | 2015-09-11 16:13:16 -0700 |
|---|---|---|
| committer | Alex Deymo <deymo@google.com> | 2015-09-28 17:18:35 -0700 |
| commit | cbf09896be9a627cd04dd54ef6875bed88daa3d8 (patch) | |
| tree | 6f246abca6973648085cb24323156da70b11531c /payload_constants.cc | |
| parent | 2d528b4cd15682a7c84a415ae3cb15b7616d2b5d (diff) | |
Include the major version in update_engine.conf
This patch moves all the payload definition version numbers to
payload_constants.h and exposes the supported one in the .conf file.
Bug: 23946683
Test: Added unittest to match the .conf file with the code.
Change-Id: I7d84d2aa3c85d2b4d5da8bf102aa9bf99acc0136
Diffstat (limited to 'payload_constants.cc')
| -rw-r--r-- | payload_constants.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/payload_constants.cc b/payload_constants.cc index 9d6fb3d6..aeddf11d 100644 --- a/payload_constants.cc +++ b/payload_constants.cc @@ -18,6 +18,13 @@ namespace chromeos_update_engine { +const uint64_t kChromeOSMajorPayloadVersion = 1; +const uint64_t kBrilloMajorPayloadVersion = 2; + +const uint32_t kFullPayloadMinorVersion = 0; +const uint32_t kInPlaceMinorPayloadVersion = 1; +const uint32_t kSourceMinorPayloadVersion = 2; + const char kLegacyPartitionNameKernel[] = "boot"; const char kLegacyPartitionNameRoot[] = "system"; |
