schemas: Add Decorator.Compatible interface
This commit adds Compatible to under xyz.openbmc_project.Decorator in
openbmc-dbus.json with property Names as described in
https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/\
xyz/openbmc_project/Inventory/Decorator/Compatible.interface.yaml. This
commit also adds xyz.openbmc_project.Inventory.Decorator.Compatible to
under EMConfig in global.json so that the interface can be configured in
the board's Entity Manager configuration file. The usage of this
interface was mentioned in
https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/\
xyz/openbmc_project/Software/README.md#compatibility.
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
Change-Id: I447dacb3ffb8dc0dede5d3b17e58cbe06804e214
diff --git a/schemas/openbmc-dbus.json b/schemas/openbmc-dbus.json
index bfe8a11..10c9ea9 100644
--- a/schemas/openbmc-dbus.json
+++ b/schemas/openbmc-dbus.json
@@ -40,6 +40,19 @@
"required": ["AssetTag"],
"type": "object"
},
+ "Compatible": {
+ "additionalProperties": false,
+ "properties": {
+ "Names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": ["Names"],
+ "type": "object"
+ },
"Replaceable": {
"additionalProperties": false,
"properties": {