host-ipmid: Convert providers to package group

The desired providers were previously expressed in a
virtual package.  Move them to a packagegroup instead.

Change-Id: I7343b64871b655dc7f567ecb8412b6b47b791d33
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmid-providers.bbappend b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmid-providers.bbappend
new file mode 100644
index 0000000..07bb5f2
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmid-providers.bbappend
@@ -0,0 +1 @@
+RDEPENDS_${PN}-libs += "host-ipmid-oem"
diff --git a/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc b/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
index 314fdd4..13fa14a 100644
--- a/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
+++ b/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
@@ -7,10 +7,6 @@
         openpower-pflash \
         "
 
-VIRTUAL-RUNTIME_obmc-phosphor-ipmi-parsers = " \
-        host-ipmid-oem \
-        host-ipmid-fru \
-       "
 VIRTUAL-RUNTIME_skeleton_workbook = "${MACHINE}-config"
 
 PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "btbridged"
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
index ff7f562..f71f79a 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
@@ -5,7 +5,7 @@
 
 RRECOMMENDS_${PN} += "virtual-obmc-host-ipmi-hw"
 
-RRECOMMENDS_${PN} += "${VIRTUAL-RUNTIME_obmc-phosphor-ipmi-parsers}"
+RRECOMMENDS_${PN} += "packagegroup-obmc-ipmid-providers-libs"
 
 inherit autotools pkgconfig
 inherit obmc-phosphor-license
diff --git a/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmid-providers.bb b/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmid-providers.bb
new file mode 100644
index 0000000..a534363
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmid-providers.bb
@@ -0,0 +1,13 @@
+SUMMARY = "OpenBMC - IPMI providers"
+PR = "r1"
+
+inherit packagegroup
+inherit obmc-phosphor-license
+
+PROVIDES = "${PACKAGES}"
+PACKAGES = "${PN}-libs"
+
+SUMMARY_${PN}-libs = "Extra providers for ipmid."
+RDEPENDS_${PN}-libs = " \
+        host-ipmid-fru \
+        "
diff --git a/meta-phosphor/conf/machine/include/sample.inc b/meta-phosphor/conf/machine/include/sample.inc
index 91c1d66..cd41c72 100644
--- a/meta-phosphor/conf/machine/include/sample.inc
+++ b/meta-phosphor/conf/machine/include/sample.inc
@@ -5,11 +5,6 @@
         obmc-phosphor-flash-mgmt \
         "
 
-VIRTUAL-RUNTIME_obmc-phosphor-ipmi-parsers = " \
-        host-ipmid-oem \
-        host-ipmid-fru \
-        host-ipmid-tool \
-       "
 PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "host-ipmi-hw-example"
 PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "obmc-phosphor-chassisd"
 PREFERRED_PROVIDER_virtual/obmc-event-mgmt = "obmc-phosphor-event"