configurations: add PDR config JSONs
Add configurations for BMC owned PDRs. There's code, that on finding
thes JSONs, will create PDRs for the BMC. Previously these configs
were included in the bitbake metadata, now they're being moved in-repo.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: I688444e50de486383f22d38a82dc40ce51bc8226
diff --git a/configurations/meson.build b/configurations/meson.build
index 55ad06c..b61bf75 100644
--- a/configurations/meson.build
+++ b/configurations/meson.build
@@ -12,3 +12,5 @@
if get_option('oem-ibm').enabled()
install_subdir('../oem/ibm/configurations/fru', install_dir: packagedir)
endif
+
+install_subdir('pdr', install_dir: packagedir)
diff --git a/configurations/pdr/11.json b/configurations/pdr/11.json
new file mode 100644
index 0000000..cf7b0c8
--- /dev/null
+++ b/configurations/pdr/11.json
@@ -0,0 +1,88 @@
+{
+ "effecterPDRs": [
+ {
+ "pdrType" : 11,
+ "entries" : [{
+ "type" : 33,
+ "instance" : 0,
+ "container" : 0,
+ "effecters" : [{
+ "set" : {
+ "id" : 196,
+ "size" : 1,
+ "states" : [1,2]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/state/host0",
+ "interface": "xyz.openbmc_project.State.OperatingSystem.Status",
+ "property_name": "OperatingSystemState",
+ "property_type": "string",
+ "property_values": [
+ "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Standby",
+ "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.BootComplete"
+ ]
+ }
+ }]
+ },
+ {
+ "type" : 45,
+ "instance" : 0,
+ "container" : 0,
+ "effecters" : [{
+ "set" : {
+ "id" : 260,
+ "size" : 2,
+ "states" : [9]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/state/chassis0",
+ "interface": "xyz.openbmc_project.State.Chassis",
+ "property_name": "RequestedPowerTransition",
+ "property_type": "string",
+ "property_values":[
+ "xyz.openbmc_project.State.Chassis.Transition.Off"
+ ]
+ }
+ }]
+ },
+ {
+ "type" : 31,
+ "instance" : 0,
+ "container" : 0,
+ "effecters" : [{
+ "set" : {
+ "id" : 129,
+ "size" : 1,
+ "states" : [6]
+ },
+ "dbus" : {
+ "path": "/xyz/openbmc_project/state/host0",
+ "interface": "xyz.openbmc_project.State.Host",
+ "property_name": "RequestedHostTransition",
+ "property_type": "string",
+ "property_values": [
+ "xyz.openbmc_project.State.Host.Transition.ForceWarmReboot"
+ ]
+ }
+ }]
+ }]
+ },
+ {
+ "pdrType" : 9,
+ "entries" : [{
+ "type" : 193,
+ "instance" : 0,
+ "base_unit":72,
+ "rate_unit":0,
+ "effecter_resolutioninit":1,
+ "effecter_data_size":4,
+ "range_field_format":3,
+ "dbus" : {
+ "path": "/xyz/openbmc_project/state/host0",
+ "interface": "xyz.openbmc_project.Control.Boot.RebootAttempts",
+ "property_name": "AttemptsLeft",
+ "property_type": "uint32_t"
+ }
+ }]
+ }]
+}