meta-ampere: move packagegroup to common
This moves packagegroup to common to be used for all platforms.
Tested:
- All packages are available on RootFs
- ipmi sensor, fru report
- Web login
- Power control
Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com>
Change-Id: I87f7ddbd94e9321e452353ed21cacd0f8a4d8f74
diff --git a/meta-ampere/meta-common/recipes-phosphor/packagegroups/packagegroup-ampere-apps.bb b/meta-ampere/meta-common/recipes-phosphor/packagegroups/packagegroup-ampere-apps.bb
new file mode 100644
index 0000000..82f0dfa
--- /dev/null
+++ b/meta-ampere/meta-common/recipes-phosphor/packagegroups/packagegroup-ampere-apps.bb
@@ -0,0 +1,49 @@
+SUMMARY = "OpenBMC for Ampere - Applications"
+PR = "r1"
+
+inherit packagegroup
+inherit obmc-phosphor-utils
+
+PROVIDES = "${PACKAGES}"
+PACKAGES = " \
+ ${PN}-chassis \
+ ${PN}-flash \
+ ${PN}-system \
+ ${PN}-fans \
+ "
+
+PROVIDES += "virtual/obmc-chassis-mgmt"
+PROVIDES += "virtual/obmc-flash-mgmt"
+PROVIDES += "virtual/obmc-system-mgmt"
+PROVIDES += "virtual/obmc-fan-mgmt"
+
+RPROVIDES:${PN}-chassis += "virtual-obmc-chassis-mgmt"
+RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
+RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt"
+RPROVIDES:${PN}-fans += "virtual-obmc-fan-mgmt"
+
+SUMMARY:${PN}-chassis = "Ampere Chassis"
+RDEPENDS:${PN}-chassis = " \
+ ampere-platform-init \
+ ampere-utils \
+ ampere-usbnet \
+ ampere-ipmi-oem \
+ ampere-mac-update \
+ ampere-driver-binder \
+ phosphor-post-code-manager \
+ phosphor-host-postd \
+ "
+
+SUMMARY:${PN}-system = "Ampere System"
+RDEPENDS:${PN}-system = " \
+ ampere-hostctrl \
+ ampere-fault-monitor \
+ "
+
+SUMMARY:${PN}-flash = "Ampere Flash"
+RDEPENDS:${PN}-flash = " \
+ "
+
+SUMMARY:${PN}-fans = "Ampere Fans"
+RDEPENDS:${PN}-fans = " \
+ "
diff --git a/meta-ampere/meta-common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend b/meta-ampere/meta-common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
new file mode 100644
index 0000000..e81e3bf
--- /dev/null
+++ b/meta-ampere/meta-common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
@@ -0,0 +1,24 @@
+RDEPENDS:${PN}-extras:append = " \
+ phosphor-image-signing \
+ phosphor-virtual-sensor \
+ phosphor-misc-usb-ctrl \
+ phosphor-gpio-monitor-monitor \
+ phosphor-skeleton-control-power \
+ phosphor-hostlogger \
+ phosphor-sel-logger \
+ phosphor-logging \
+ phosphor-post-code-manager \
+ phosphor-host-postd \
+ phosphor-software-manager \
+ obmc-phosphor-buttons-signals \
+ obmc-phosphor-buttons-handler \
+ smbios-mdr \
+ "
+
+RDEPENDS:${PN}-inventory:append = " \
+ dbus-sensors \
+ entity-manager \
+ "
+
+RDEPENDS:${PN}-extras:remove = " phosphor-hwmon"
+VIRTUAL-RUNTIME_obmc-sensors-hwmon ?= "dbus-sensors"