intel/genxml: Add genxml_import.py script
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 26 Dec 2022 11:37:21 +0000 (03:37 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 14 Sep 2023 18:05:16 +0000 (11:05 -0700)
commit0495f952d48f67c057eb835ebefe886683529e7f
treeb98c1383e04299aeb33adb673bb66ac47d843b20
parent6ad2f39bab5ea12bc9c292fce9971857eaa5310c
intel/genxml: Add genxml_import.py script

This script can:
 * validate that genxml files do not duplicate imported items
 * add imports to genxml files and optimize the file by dropping
   duplicate items
 * reverse the import operation by flattening genxml files

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20593>
src/intel/genxml/genxml_import.py [new file with mode: 0755]