diff --git a/tools/topo_tree_dump.py b/tools/topo_tree_dump.py new file mode 100755 index 00000000..2c948dc0 --- /dev/null +++ b/tools/topo_tree_dump.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +""" +Do not make this script longer or more complicated. Use it as starting +point if needed. + +Pro tip: try these commands _interactively_ from `ipython3` +""" + +import sys +import tplgtool2 + +tplgFormat = tplgtool2.TplgBinaryFormat() + +parsedTplg = tplgFormat.parse_file(sys.argv[1]) + +print(parsedTplg)