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
2 files changed
tree: ef51ebe2d8f3a0bfa3c5396b611bf9ac28982dd0
  1. conf/
  2. meta-nicole/
  3. meta-vesnin/
  4. recipes-core/
  5. recipes-phosphor/
  6. .gitignore
  7. COPYING.apache-2.0
  8. COPYING.MIT
  9. LICENSE
  10. MAINTAINERS
  11. README.md
README.md

YADRO

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.

https://yadro.com