meta-facebook: remove yosemite4 power control redundant dependencies
Remove two depnedencies being redundant in yosemite4:
1. slot host off was waiting the invalid ipmi host service,
and we won't use Ipmi.Internal.SoftPowerOff.service.
2. obmc-host-shutdown@.target required by obmc-host-reboot:
power cycle and off will be both triggered with this dependency.
For these reasons, remove dependencies,
and it was verified that power control will be fine with changes.
Tested:
host power on/off/cycle: pass
Change-Id: Ieb0e82b5297d05ec552ccec967d9dc41de4aa756
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend b/meta-facebook/meta-yosemite4/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend
new file mode 100644
index 0000000..760c683
--- /dev/null
+++ b/meta-facebook/meta-yosemite4/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend
@@ -0,0 +1,5 @@
+# yosemite4 doesn't use xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service in power control
+SOFT_SVC = ""
+SOFT_TGTFMT = ""
+SOFT_FMT = ""
+
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager_%.bbappend b/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager_%.bbappend
index 4e6a1ba..807bd72 100644
--- a/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager_%.bbappend
+++ b/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager_%.bbappend
@@ -4,6 +4,11 @@
-Dwarm-reboot=enabled \
"
+HOST_DEFAULT_TARGETS:remove:yosemite4 = " \
+ obmc-host-reboot@{}.target.requires/obmc-host-shutdown@{}.target \
+ obmc-host-reboot@{}.target.requires/phosphor-reboot-host@{}.service \
+ "
+
CHASSIS_DEFAULT_TARGETS:remove:yosemite4 = " \
obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-on@{}.service \
obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-running@{}.service \