meta-ibm:implement phosphor-power for Mihawk platform
Implement power-sequencer of phosphor-power for mihawk.
(From meta-ibm rev: 65dbe8b7c2ed9507ea5842e6e91b637a9069b947)
Change-Id: I00ee20fbcfcd6dc34724c2f7caf50cf7ae94d124
Signed-off-by: Andy YF Wang <Andy_YF_Wang@wistron.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-ibm/recipes-phosphor/power/power-sequencer.bb b/meta-ibm/recipes-phosphor/power/power-sequencer.bb
index be5035e..cd58222 100644
--- a/meta-ibm/recipes-phosphor/power/power-sequencer.bb
+++ b/meta-ibm/recipes-phosphor/power/power-sequencer.bb
@@ -5,13 +5,21 @@
inherit allarch
-SRC_URI = "file://ucd90160.yaml"
+SRC_URI_append_ibm-ac-server = " file://ucd90160.yaml"
+SRC_URI_append_rainier = " file://ucd90160.yaml"
-FILES_${PN} += "${datadir}/power-sequencer/ucd90160.yaml"
+FILES_${PN}_append_ibm-ac-server = " ${datadir}/power-sequencer/ucd90160.yaml"
+FILES_${PN}_append_rainier = " ${datadir}/power-sequencer/ucd90160.yaml"
S = "${WORKDIR}"
-do_install() {
+do_install_append_ibm-ac-server() {
+ DEST=${D}${datadir}/power-sequencer
+
+ install -D ucd90160.yaml ${DEST}/ucd90160.yaml
+}
+
+do_install_append_rainier() {
DEST=${D}${datadir}/power-sequencer
install -D ucd90160.yaml ${DEST}/ucd90160.yaml