diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-03 06:00:55 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-22 19:23:27 +1300 |
commit | acf5cb88b403540408e87d078d916269df371584 (patch) | |
tree | 155f7c1fa39e989686461e773bd38b1b218c5ec8 /tools/dtoc/test_fdt.py | |
parent | 1a8b4b9d94b295f3dae06c72931a99d74fd19179 (diff) |
dtoc: Support scanning of structs in header files
Drivers can have private / platform data contained in structs and these
struct definitions are generally kept in header files. In order to
generate build-time devices, dtoc needs to generate code that declares
the data contained in those structs. This generated code must include the
relevant header file, to avoid a build error.
We need a way for dtoc to scan header files for struct definitions. Then,
when it wants to generate code that uses a struct, it can make sure it
includes the correct header file, first.
Add a parser for struct information, similar to drivers. Keep a dict of
the structs that were found.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/test_fdt.py')
0 files changed, 0 insertions, 0 deletions