Add virtual/openpower-fru-inventory

This virtual provides an environment file that serves as inventory
configuration for openpower-vpd-parser.

Add a native recipe that builds the configuration from MRW. Set this
recipe as the default for OpenPOWER systems.

Change-Id: I88c1d4123d73a5cdf37cba8efda40107f7b9ef25
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/common/recipes-phosphor/vpd/openpower-fru-inventory-example-native.bb b/common/recipes-phosphor/vpd/openpower-fru-inventory-example-native.bb
new file mode 100644
index 0000000..8f9bd05
--- /dev/null
+++ b/common/recipes-phosphor/vpd/openpower-fru-inventory-example-native.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Inventory config for openpower-vpd-parser"
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-license
+inherit openpower-fru-vpd
+
+SRC_URI += "file://inventory"
+
+PROVIDES += "virtual/openpower-fru-inventory"
+
+S = "${WORKDIR}"
+
+do_install() {
+        # This recipe is supposed to create a systemd environment file
+        # with values for FRU types and paths. This example recipe
+        # uses a pre-defined file ($PN/inventory).
+
+        DEST=${D}${inventory_datadir_native}
+        install -d ${DEST}
+        install inventory ${DEST}
+}