Add FW Version in journalctl log

Adds version logging for AFM and CPLD active and recovery versions as well
as BMC and BIOS recovery versions on every AC cycle and BMC reboot.
Log format: VERSION INFO - <ITEM>_<RECOVERY/ACTIVE> - <version info>
Where <ITEM> is "afm" "bmc", "bios", or "cpld"
and <RECOVERY/ACTIVE> will specify "recovery" or "active" depending on
if the version is the recovery version or the active version,
respectively.
If any version is empty, e.g. "0.0", then it is not printed.
User can retrieve FW versions by running:
journalctl | grep "VERSION INFO"

Tested:
AC Cycle:
VERSION INFO - cpld_active - xx.x-x.x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
VERSION INFO - bmc_recovery - x.xx-xx-xxxxxxx
VERSION INFO - bios_recovery - x.x
VERSION INFO - cpld_recovery - x.x
VERSION INFO - afm_active - x.x
VERSION INFO - afm_recovery - x.x

BMC reboot:
VERSION INFO - cpld_active - xx.x-x.x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
VERSION INFO - bmc_recovery - x.xx-xx-xxxxxxx
VERSION INFO - bios_recovery - xxx.xxx
VERSION INFO - cpld_recovery - x.x
VERSION INFO - afm_active - x.x
VERSION INFO - afm_recovery - x.x

Change-Id: I955bc67a9cdc6d53a422d70ee999781cb6e22b08
Signed-off-by: Alex Schendel <alex.schendel@intel.com>
3 files changed