Skip to content

Commit 354431b

Browse files
committed
tools/README.md: topology clean-up
We have multiple scripts parsing topologies and it's impossible to guess the differences. Try to clarify the current status in tools/README.md Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 14ae277 commit 354431b

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

tools/README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,36 @@
3434
* sof-process-state.sh
3535
<br> Shows the current state of a given process
3636

37+
38+
Topologies
39+
----------
40+
41+
Topologies provide important information for testing.
42+
3743
* sof-tplgreader.py
38-
<br> tplgtool.py wrapper, it reads info from tplgtool.py to analyze topologies.
44+
<br> Front-end for the (old) tplgtool.py parsing library. Prints a list of PCMs found in a
45+
topology file. Provides advanced PCM filtering useful for testing. Warning: the tool
46+
confuses pipelines and PCMs and wrongly calls PCMs "pipelines" everywhere; but it
47+
really is about PCMs. Unlike other scripts, prints duplex PCMs on two separate lines:
48+
playback and capture.
3949

4050
* tplgtool2.py
41-
<br> Dumps info from tplg binary file.
42-
SOF CI uses this to generate a topology graph.
51+
<br> New, higher-level, "construct"-based, topology parsing library. Can also be invoked
52+
standalone to prints a list of PCMs and generates a graph with more information than
53+
the graph generated by the old tplgtoo.py. As of May 2024, the topology graph
54+
displayed in SOF test results has been generated by this.
4355

4456
* tplgtool.py
45-
<br> Dumps info from tplg binary file. sof-tplgreader.py still use this but new features
46-
will go to tplgtool2.py. When all functions are migrated to tplgtool2.py
47-
it will be deprecated.
57+
<br> Old toplogy parsing library. Still used by sof-tplgreader.py but new features
58+
will go to tplgtool2.py. When all functions are migrated to tplgtool2.py it will be
59+
deprecated. Can also be invoked standalone to print a list of PCMs and to generate a
60+
graph (with less information than tplgtool2.py).
61+
62+
* common.py
63+
<br> PCM formatting routines to bridge the gap from Python to shell scripts.
64+
65+
* tplgfw-sanity-check.py
66+
<br> Matches UUID in topology and FW, then finds out whether all module in topoloy
67+
can be supported by this FW. Depends on tplgtool2.py for parsing. Implements a
68+
basic firmware file parser itself.
69+

0 commit comments

Comments
 (0)