Clean up status data repr, remove crufty fields, and /s/hash/volatile.
Status is easier to deal with (and extend) if consolidated into
a single dict for hwids and one for components, respectively.
The bitmap path and release string fields are removed. Bitmaps
are obsolete. For release, we can represent the same data within
either initial_config or volatile.
Volatile is not restricted to just containing hash values. Change
the name to reflect that (which also makes fields sort better).
TEST=run hwid_tool usng data files that contain fields matching
the changes in this CL (eg, CompDb with 'registry' and
'status_map' as opposed to the more numerous previous fields.
successfully running any hwid_tool command is sufficient
to test, since it will validate data on any read.
Commit-Ready: Tammo Spalink <email@example.com>
Reviewed-by: Tammo Spalink <firstname.lastname@example.org>
Tested-by: Tammo Spalink <email@example.com>
1 file changed