Add Inventec's Transformers platform
Change-Id: Ic8aaa0728a43936cd4c6212d590e01ba8202b25b
Signed-off-by: Habeeb Mohammed <mohammed.habeeb@inventec.com>
diff --git a/meta-inventec/meta-common/conf/layer.conf b/meta-inventec/meta-common/conf/layer.conf
new file mode 100644
index 0000000..07788f6
--- /dev/null
+++ b/meta-inventec/meta-common/conf/layer.conf
@@ -0,0 +1,11 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "common"
+BBFILE_PATTERN_common = "^${LAYERDIR}/"
+BBFILE_PRIORITY_common = "10"
+LAYERSERIES_COMPAT_common = "hardknott honister"
diff --git a/meta-inventec/meta-common/recipes-inventec/packagegroups/packagegroup-inventec-apps.bb b/meta-inventec/meta-common/recipes-inventec/packagegroups/packagegroup-inventec-apps.bb
new file mode 100644
index 0000000..7996cda
--- /dev/null
+++ b/meta-inventec/meta-common/recipes-inventec/packagegroups/packagegroup-inventec-apps.bb
@@ -0,0 +1,56 @@
+SUMMARY = "OpenBMC for Inventec - Applications"
+PR = "r1"
+
+inherit packagegroup
+
+PROVIDES = "${PACKAGES}"
+PACKAGES = " \
+ ${PN}-chassis \
+ ${PN}-fans \
+ ${PN}-flash \
+ ${PN}-system \
+ ${PN}-ipmi-oem \
+ "
+
+PROVIDES += "virtual/obmc-chassis-mgmt"
+PROVIDES += "virtual/obmc-fan-mgmt"
+PROVIDES += "virtual/obmc-flash-mgmt"
+PROVIDES += "virtual/obmc-system-mgmt"
+PROVIDES += "virtual/obmc-ipmi-oem"
+
+RPROVIDES:${PN}-chassis += "virtual-obmc-chassis-mgmt"
+RPROVIDES:${PN}-fans += "virtual-obmc-fan-mgmt"
+RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
+RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt"
+RPROVIDES:${PN}-ipmi-oem += "virtual-obmc-ipmi-oem"
+
+SUMMARY:${PN}-chassis = "Inventec Chassis"
+RDEPENDS:${PN}-chassis = " \
+ x86-power-control \
+ obmc-host-failure-reboots \
+ "
+
+SUMMARY:${PN}-fans = "Inventec Fans"
+RDEPENDS:${PN}-fans = " \
+ phosphor-pid-control \
+ "
+
+SUMMARY:${PN}-flash = "Inventec Flash"
+RDEPENDS:${PN}-flash = " \
+ obmc-control-bmc \
+ phosphor-ipmi-blobs \
+ phosphor-ipmi-flash \
+ "
+
+SUMMARY:${PN}-system = "Inventec System"
+RDEPENDS:${PN}-system = " \
+ bmcweb \
+ entity-manager \
+ dbus-sensors \
+ webui-vue \
+ phosphor-snmp \
+ phosphor-sel-logger \
+ phosphor-gpio-monitor \
+ phosphor-gpio-monitor-monitor \
+ vlan \
+ "
diff --git a/meta-inventec/meta-common/recipes-inventec/packagegroups/packagegroup-obmc-apps.bbappend b/meta-inventec/meta-common/recipes-inventec/packagegroups/packagegroup-obmc-apps.bbappend
new file mode 100644
index 0000000..73a788c
--- /dev/null
+++ b/meta-inventec/meta-common/recipes-inventec/packagegroups/packagegroup-obmc-apps.bbappend
@@ -0,0 +1,14 @@
+RDEPENDS:${PN}-extras:remove = " \
+ phosphor-rest \
+ phosphor-gevent \
+ "
+
+#Add python utility.(e.g gpioutil,...)
+RDEPENDS:${PN}-extrasdevtools:append += " ipmitool"
+RDEPENDS:${PN}-extrasdevtools:append += " openssh-sftp-server"
+RDEPENDS:${PN}-extras += " python3-smbus"
+
+#Install publickey for image file verification
+RDEPENDS:${PN}-extras += " phosphor-image-signing"
+
+RDEPENDS:${PN}-health-monitor:remove:transformers = "phosphor-health-monitor"