| commit | 21dad047f1713fcafdc85532fefc83ca17d64a93 | [log] [tgz] |
|---|---|---|
| author | Miguel Gomez <mgomez@mx1.ibm.com> | Fri Jun 26 20:54:48 2020 +0000 |
| committer | Adriana Kobylak <anoo@linux.ibm.com> | Tue Jul 28 21:07:21 2020 +0000 |
| tree | b937a748477a4dfb2b5e0d20d0975fd418c11d4c | |
| parent | 5312d8549ad4134d2f58ddbc8ff506bb926e99e3 [diff] |
BMC Minimum ship Level
This code compares the BMC_MSL defined at compile time,
It will parse the new fw (explicit at MANIFEST file) and use regex to
evaluate it and compare BMC_MSL against version from MANIFEST.
If newer or equal it will apply, otherwise it will fail,
preventing activation operation.
Tested:
regex-bmc-msl="([a-z]+[0-9]{2})+([0-9]+).([0-9]+).([0-9]+)"
fw-package="version=fw1010.00-28.4-0-ge611abca21"
bmc-msl="fw1010.00-27" proceeds with activation...
bmc-msl="fw1010.00-29" returns:
Jul 15 20:35:45 tacoma1z-w81 phosphor-image-updater[766]:
BMC Minimum Ship Level NOT met
Jul 15 20:35:45 tacoma1z-w81 phosphor-image-updater[766]:
A system component has a software version that is incompatible as
determined by the implementation and needs to be updated....
Signed-off-by: Miguel Gomez <mgomez@mx1.ibm.com>
Change-Id: I0ab0eba7c7c89f38ca698aa3e369aa50797edb07
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
meson buildninja -C buildTo clean the repository run rm -r build.