meta-facebook: harma: Add bios active version

We can't retrieve the BIOS version from Redfish
because the BIOS active property is null. Instead,
we can get the BIOS version from /var/lib/fb-ipmi-oem/appData.json,
which is updated by fb-ipmi-oem. Then,
we write the version to the active property when the host post end.

Test Plan:
curl -u root:0penBmc -k -X GET https://10.10.12.102/redfish/v1/UpdateService/FirmwareInventory/bios_active |grep Version
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   483  100   483    0     0   2639      0 --:--:-- --:--:-- --:--:--  2653
  "Version": "F0M_1A04"

Change-Id: Ia5f68ae9364f61c652ee328cab390804c2a65482
Signed-off-by: Peter Yin <peter.yin@quantatw.com>
diff --git a/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/assert-post-end b/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/assert-post-end
index 8c96ccd..8d41a37 100644
--- a/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/assert-post-end
+++ b/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/assert-post-end
@@ -2,4 +2,6 @@
 
 busctl set-property xyz.openbmc_project.State.Host0 /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.OperatingSystem.Status OperatingSystemState s xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Standby
 
+busctl set-property xyz.openbmc_project.Software.BMC.Updater /xyz/openbmc_project/software/bios_active xyz.openbmc_project.Software.Version Version s "$(jq -r '.sysfw_ver_server0' /var/lib/fb-ipmi-oem/appData.json)"
+
 exit 0
diff --git a/meta-facebook/recipes-fb/ipmi/fb-ipmi-oem_git.bb b/meta-facebook/recipes-fb/ipmi/fb-ipmi-oem_git.bb
index 275d279..a7e0318 100755
--- a/meta-facebook/recipes-fb/ipmi/fb-ipmi-oem_git.bb
+++ b/meta-facebook/recipes-fb/ipmi/fb-ipmi-oem_git.bb
@@ -38,6 +38,7 @@
 FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV}"
 
 do_install:append(){
+   install -d ${D}/var/lib/fb-ipmi-oem
    install -d ${D}${includedir}/fb-ipmi-oem
    install -m 0644 -D ${S}/include/*.hpp ${D}${includedir}/fb-ipmi-oem
 }