meta-bletchley: add ACPIPowerState interface
Add ACPIPowerState interface to phosphor-settings for each host.
Test Results:
```
root@bletchley:~# busctl call xyz.openbmc_project.ObjectMapper \
> /xyz/openbmc_project/object_mapper \
> xyz.openbmc_project.ObjectMapper GetSubTree sias / 0 1 \
> xyz.openbmc_project.Control.Power.ACPIPowerState -j
{
"type" : "a{sa{sas}}",
"data" : [
{
"/xyz/openbmc_project/control/host1/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host2/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host3/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host4/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host5/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host6/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
}
}
]
}
```
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Icd573faf69d818b394cccab223c56a260a55767c
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend
new file mode 100644
index 0000000..758d137
--- /dev/null
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend
@@ -0,0 +1,4 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI:append = " file://bletchley-host-acpi-power-state.yaml"
+SETTINGS_HOST_TEMPLATES:append = " bletchley-host-acpi-power-state.yaml"