Create an association to BMC inventory item

Create an association from /xyz/openbmc_project/software/<id>
to the BMC inventory item.
To determine the BMC inventory item path, look for paths under
/xyz/openbmc_project/inventory/system/chassis/ that end in /bmc.

Change-Id: I8da748743368e3e607b30a76a6729829dcceec54
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/item_updater.hpp b/item_updater.hpp
index 4d8924a..4015760 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -51,6 +51,7 @@
                                     this,
                                     std::placeholders::_1))
         {
+            setBMCInventoryPath();
             processBMCImage();
             restoreFieldModeStatus();
             emit_object_added();
@@ -111,6 +112,13 @@
          */
         bool fieldModeEnabled(bool value) override;
 
+        /** @brief Sets the BMC inventory item path under
+         *  /xyz/openbmc_project/inventory/system/chassis/. */
+        void setBMCInventoryPath();
+
+        /** @brief The path to the BMC inventory item. */
+        std::string bmcInventoryPath;
+
         /** @brief Restores field mode status on reboot. */
         void restoreFieldModeStatus();