commit | 468784ebfd8009e34207018c44858e2b6bc28762 | [log] [tgz] |
---|---|---|
author | Alexander Amelkin <a.amelkin@yadro.com> | Sat Sep 26 04:10:36 2020 +0300 |
committer | Alexander Amelkin <a.amelkin@yadro.com> | Tue Sep 29 16:48:11 2020 +0300 |
tree | ef51ebe2d8f3a0bfa3c5396b611bf9ac28982dd0 | |
parent | a01e7828feac74f9ae65877b5fe352395cab8736 [diff] |
meta-yadro: Fix version parsing, update AUX rev AUX Revision info was always taken from the dev_id.json file if it exists, overriding the value calculated from the active firmware version string. Also, when AUX info was calculated, it only properly parsed the dirtyness of the build. With this commit the AUX info calculation will properly parse the git hash part and will include it as higher 3 bytes of the AUX info. For officially released versions the lower byte will be zero. For development versions, bits [7:1] of the fourth byte will all be 1 as an indicator of non-release branch. For unofficial builds from release branches those bits will contain a number from 1 to 126 indicating a patch level since the release tag. In any case the bit 0 of byte 4 is a dirtyness indicator. If the sources used to build the firmware were modified compared to the git hash, this bit will be 1. WARNING: For the AUX decoding from version string to work properly, the dev_id.json file must NOT contain the `aux` property. End-user-impact: Version info is properly represented in the AUX Revision Info fields in response to the IPMI Get Device ID command (ipmitool mc info) Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com> Change-Id: Ie5e7eb2d45ee072e91c609085655ee334c2efec5
YADRO is a technology company committed to influencing the way enterprises address their IT transformation challenges and offering game-changing products with outstanding quality. Powered by a team of knowledgeable talents combining a wide range of experience gained through the years of contribution to the success of leading technology companies.