meta-facebook: phosphor-state-manager: move greatlakes overrides to system
Greatlakes was a prototype and introduced a lot of noise at the top
level. Move this into the system-specific side.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibf3310c7e3ccc4d400f5d422ef577fb2bfdbd685
diff --git a/meta-facebook/recipes-phosphor/state/phosphor-state-manager_%.bbappend b/meta-facebook/recipes-phosphor/state/phosphor-state-manager_%.bbappend
index 8d48c68..fb6970c 100644
--- a/meta-facebook/recipes-phosphor/state/phosphor-state-manager_%.bbappend
+++ b/meta-facebook/recipes-phosphor/state/phosphor-state-manager_%.bbappend
@@ -1,4 +1,4 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}/${MACHINE}:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
HOST_DEFAULT_TARGETS:append = " \
obmc-host-shutdown@{}.target.wants/host-poweroff@{}.service \
@@ -17,49 +17,4 @@
obmc-chassis-poweroff@{}.target.requires/obmc-powered-off@{}.service \
"
-CHASSIS_DEFAULT_TARGETS:remove:greatlakes = " \
- obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \
- obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \
- "
-
-SRC_URI:append:greatlakes = " \
- file://chassis-poweroff@.service \
- file://chassis-poweron@.service \
- file://chassis-powercycle@.service \
- file://host-poweroff@.service \
- file://host-poweron@.service \
- file://host-powercycle@.service \
- file://host-powerreset@.service \
- file://power-ctrl-init.service \
- file://chassis-poweroff \
- file://chassis-poweron \
- file://chassis-powercycle \
- file://host-poweroff \
- file://host-poweron \
- file://host-powercycle \
- file://host-powerreset \
- file://power-cmd \
- file://power-ctrl-init \
- "
-
-RDEPENDS:${PN}:append:greatlakes = " bash"
-
-do_install:append:greatlakes() {
- install -d ${D}${systemd_system_unitdir}
- install -m 0644 ${WORKDIR}/*.service ${D}${systemd_system_unitdir}/
-
- install -d ${D}${libexecdir}/${PN}
- install -m 0755 ${WORKDIR}/chassis-poweroff ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/chassis-poweron ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/chassis-powercycle ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/host-poweroff ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/host-poweron ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/host-powercycle ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/host-powerreset ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/power-cmd ${D}${libexecdir}/${PN}/
- install -m 0755 ${WORKDIR}/power-ctrl-init ${D}${libexecdir}/${PN}/
-}
-
FILES:${PN} += " ${systemd_system_unitdir}/*.service"
-
-SYSTEMD_SERVICE:${PN}-bmc:append:greatlakes = "power-ctrl-init.service"