Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite topology tools with Construct to improve the readability and maintainability #755

Merged
merged 5 commits into from
Sep 24, 2021

Commits on Sep 16, 2021

  1. GitHub Actions: update dependencies for tplgtool

    * python3-graphviz for drawing topology graph
    * python3-construct for parsing topology file
    
    Signed-off-by: Yongan Lu <[email protected]>
    miRoox committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    5041bd1 View commit details
    Browse the repository at this point in the history
  2. env-check.sh: add python package construct

    contruct is a new dependency for topology parsing.
    
    Signed-off-by: Yongan Lu <[email protected]>
    miRoox committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    91ee49c View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Rewrite topology tool in tplgtool2.py

    1. write a declarative topology file parser with Construct
    2. TplgFormatter in legacy code is confusing, split its
    functions into more explicit parts: GroupedTplg and TplgGraph
    2.1 GroupedTplg works like a simple wrapper to access different
    types of blocks more conveniently
    2.2 TplgGraph build components graph for drawing and searching
    components through graph
    
    Signed-off-by: Yongan Lu <[email protected]>
    miRoox committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    95f8aaf View commit details
    Browse the repository at this point in the history
  2. deprecate legacy tplgtool.py

    deprecate legacy tplgtool.py and recommend user migrate to
    tplgtool2.py
    
    Signed-off-by: Yongan Lu <[email protected]>
    miRoox committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    29b1f7d View commit details
    Browse the repository at this point in the history
  3. README: info about new tplgtool2.py

    Add new dependency info and tplgtool2.py description to README
    
    Signed-off-by: Yongan Lu <[email protected]>
    miRoox committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    bc00d26 View commit details
    Browse the repository at this point in the history