romulus: Add a stubbed inventory map
A recipe should have been provided when obmc-mrw was removed from
machine features.
Change-Id: I3c211e0c76bb5e208b061365b3e7de07f37dff5e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-romulus/conf/machine/romulus.conf b/meta-romulus/conf/machine/romulus.conf
index 2801ee5..23e588b 100644
--- a/meta-romulus/conf/machine/romulus.conf
+++ b/meta-romulus/conf/machine/romulus.conf
@@ -12,3 +12,5 @@
PHOSPHOR_MRW_URI = "git://github.com/open-power/romulus-xml"
PHOSPHOR_MRW_REV = "14b471fbf37f5fb60261de001df83caf5f96d81f"
+
+PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory = "romulus-ipmi-inventory-map-native"
diff --git a/meta-romulus/recipes-phosphor/ipmi/romulus-ipmi-inventory-map-native.bb b/meta-romulus/recipes-phosphor/ipmi/romulus-ipmi-inventory-map-native.bb
new file mode 100644
index 0000000..c418498
--- /dev/null
+++ b/meta-romulus/recipes-phosphor/ipmi/romulus-ipmi-inventory-map-native.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Romulus IPMI to DBus Inventory mapping."
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-license
+inherit phosphor-ipmi-fru
+
+SRC_URI += "file://config.yaml"
+
+PROVIDES += "virtual/phosphor-ipmi-fru-inventory"
+
+S = "${WORKDIR}"
+
+do_install() {
+ # TODO: install this to inventory_datadir
+ # after ipmi-fru-parser untangles the host
+ # firmware config from the machine inventory.
+ DEST=${D}${config_datadir}
+
+ install -d ${DEST}
+ install config.yaml ${DEST}
+}
+
diff --git a/meta-romulus/recipes-phosphor/ipmi/romulus-ipmi-inventory-map/config.yaml b/meta-romulus/recipes-phosphor/ipmi/romulus-ipmi-inventory-map/config.yaml
new file mode 100644
index 0000000..b3459a9
--- /dev/null
+++ b/meta-romulus/recipes-phosphor/ipmi/romulus-ipmi-inventory-map/config.yaml
@@ -0,0 +1 @@
+# This file is a stub.