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

Added script to auto update addresses.cvs and modules.json #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

matt1003
Copy link

Added script to parse input devicetree source, then update each modules' instance field within the modules config file (modules.json) and also generate the register config file (addresses.csv). This is achieved using a regexp to search for AXI definitions within the devicetree source.

This script parses devicetree source to update each modules' instance
field within the modules config file (modules.json) and generates the
register config file (addresses.csv). This is acvieved using a regexp
to search for AXI definitions with the devicetree source.
Set the default number of instances for each module to zero.
This will be auto updated by parse-dts.py base on the number
of instance for each module that occur within the devicetree
source.
1. fixed selector module in addresses.csv
2. modules.json format now match python json.dump output format
The parse dts script now sets every modules' instances field to zero before
updating modules.json with the actual instances values. This is intended to
flush out any stale data that may be lurking around after multiple builds.
The parse dts script will now throw an error if it cannot find any
modules within the input devicetree source.
The parse dts script will now throw a warning if it cannot find any
modules within the input devicetree source. Dont error as there are
cases when parsing a dts with no modules is valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant