Skip to content

Commit

Permalink
schema: Support DT's compatible in v4.4 environments
Browse files Browse the repository at this point in the history
Add support for specifying the values of the root-level `compatible`
property, from the system's device tree (if any), in test's environment.

The values must be stored in a string array.
  • Loading branch information
spbnick committed Aug 16, 2024
1 parent 86b75f6 commit 996029c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions kcidb_io/schema/v04_04.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,32 @@ class Version(PreviousVersion):
"amount of memory/storage/CPUs, for each host; "
"process environment variables, etc.",
"properties": {
"compatible": {
"description":
"The values from the root-level "
"'compatible' property of the system's "
"device tree, if any, in the same order. "
"E.g. the contents of "
"/proc/device-tree/compatible with "
"each zero-terminated string as the "
"array's element.",
"type": "array",
"items": {
"type": "string",
"description":
"A single value from device tree "
"root-level 'compatible' property",
"pattern": "^[^ ]+(,[^ ]+)*$"
},
"examples": [
[
"zyxel,nsa325",
"marvell,kirkwood-88f6282",
"marvell,kirkwood"
],
["yna,cu1830-neo", "ingenic,x1830"],
],
},
"comment": {
"type": "string",
"description":
Expand Down

0 comments on commit 996029c

Please sign in to comment.