meta-ampere: mtmitchell: add Host power control support
Support Host power control for Mt.Mitchell platform
Tested:
1. Verify if Host power ON/OFF/cycle/reset work via IPMI, Redfish and
WebUI.
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Change-Id: Ia397866ac3aef128958d84696209ecab80d16266
diff --git a/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend b/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend
new file mode 100644
index 0000000..f325395
--- /dev/null
+++ b/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
+
+INSANE_SKIP:${PN} = "already-stripped"
+
+SRC_URI:append = " \
+ file://ampere_power_util.sh \
+ file://ampere_power_on_driver_binder.sh \
+ "
+
+do_install:append() {
+ install -d ${D}/usr/sbin
+ install -m 0755 ${WORKDIR}/ampere_power_util.sh ${D}/${sbindir}/
+ install -m 0755 ${WORKDIR}/ampere_power_on_driver_binder.sh ${D}/${sbindir}/
+}