mbox series

[v3,0/7] Port gen_compile_commands.py from Linux to U-Boot

Message ID 20230902145310.107054-1-jmcosta944@gmail.com
Headers show
Series Port gen_compile_commands.py from Linux to U-Boot | expand

Message

João Marcos Costa Sept. 2, 2023, 2:53 p.m. UTC
Hello U-Boot community,

I'm submitting a patch series that ports the gen_compile_commands.py
script from the Linux kernel's sources to U-Boot. This script, originally
located in scripts/clang-tools/gen_compile_commands.py, enables the
generation of compile_commands.json file for improved code navigation
and analysis. The series consists of the initial script import, the
necessary modifications for U-Boot compatibility, and finally some
documentation.

Your feedback on these contributions would be greatly appreciated.

Best regards,

Changes in v3:
- Add documentation to index and fix syntax issues
- Add reference to documentation in doc/build/tools
Changes in v2:
- Add compile_commands.json to gitignore
- Add documentation

Joao Marcos Costa (7):
  scripts: Port Linux's gen_compile_commands.py to U-Boot
  scripts/gen_compile_commands.py: adapt _LINE_PATTERN
  scripts/gen_compile_commands.py: fix docstring
  scripts/gen_compile_commands.py: add acknowledgments
  .gitignore: add compile_commands.json
  doc: add documentation for gen_compile_commands.py
  doc: add new section to build/tools

 .gitignore                         |   3 +
 doc/build/gen_compile_commands.rst |  47 ++++++
 doc/build/index.rst                |   1 +
 doc/build/tools.rst                |  13 ++
 scripts/gen_compile_commands.py    | 230 +++++++++++++++++++++++++++++
 5 files changed, 294 insertions(+)
 create mode 100644 doc/build/gen_compile_commands.rst
 create mode 100755 scripts/gen_compile_commands.py

Comments

João Marcos Costa Sept. 13, 2023, 1:28 p.m. UTC | #1
Hello,

Em sáb., 2 de set. de 2023 às 16:53, Joao Marcos Costa <jmcosta944@gmail.com>
escreveu:

> Hello U-Boot community,
>
> I'm submitting a patch series that ports the gen_compile_commands.py
> script from the Linux kernel's sources to U-Boot. This script, originally
> located in scripts/clang-tools/gen_compile_commands.py, enables the
> generation of compile_commands.json file for improved code navigation
> and analysis. The series consists of the initial script import, the
> necessary modifications for U-Boot compatibility, and finally some
> documentation.
>
> Your feedback on these contributions would be greatly appreciated.
>
> Best regards,
>
> Changes in v3:
> - Add documentation to index and fix syntax issues
> - Add reference to documentation in doc/build/tools
> Changes in v2:
> - Add compile_commands.json to gitignore
> - Add documentation
>
> Joao Marcos Costa (7):
>   scripts: Port Linux's gen_compile_commands.py to U-Boot
>   scripts/gen_compile_commands.py: adapt _LINE_PATTERN
>   scripts/gen_compile_commands.py: fix docstring
>   scripts/gen_compile_commands.py: add acknowledgments
>   .gitignore: add compile_commands.json
>   doc: add documentation for gen_compile_commands.py
>   doc: add new section to build/tools
>
>  .gitignore                         |   3 +
>  doc/build/gen_compile_commands.rst |  47 ++++++
>  doc/build/index.rst                |   1 +
>  doc/build/tools.rst                |  13 ++
>  scripts/gen_compile_commands.py    | 230 +++++++++++++++++++++++++++++
>  5 files changed, 294 insertions(+)
>  create mode 100644 doc/build/gen_compile_commands.rst
>  create mode 100755 scripts/gen_compile_commands.py
>
> --
> 2.41.0
>
>
Any updates?

Best regards,

www.linkedin.com/in/jmarcoscosta/
https://github.com/jmarcoscosta
Tom Rini Sept. 13, 2023, 4:19 p.m. UTC | #2
On Wed, Sep 13, 2023 at 03:28:07PM +0200, João Marcos Costa wrote:
> Hello,
> 
> Em sáb., 2 de set. de 2023 às 16:53, Joao Marcos Costa <jmcosta944@gmail.com>
> escreveu:
> 
> > Hello U-Boot community,
> >
> > I'm submitting a patch series that ports the gen_compile_commands.py
> > script from the Linux kernel's sources to U-Boot. This script, originally
> > located in scripts/clang-tools/gen_compile_commands.py, enables the
> > generation of compile_commands.json file for improved code navigation
> > and analysis. The series consists of the initial script import, the
> > necessary modifications for U-Boot compatibility, and finally some
> > documentation.
> >
> > Your feedback on these contributions would be greatly appreciated.
> >
> > Best regards,
> >
> > Changes in v3:
> > - Add documentation to index and fix syntax issues
> > - Add reference to documentation in doc/build/tools
> > Changes in v2:
> > - Add compile_commands.json to gitignore
> > - Add documentation
> >
> > Joao Marcos Costa (7):
> >   scripts: Port Linux's gen_compile_commands.py to U-Boot
> >   scripts/gen_compile_commands.py: adapt _LINE_PATTERN
> >   scripts/gen_compile_commands.py: fix docstring
> >   scripts/gen_compile_commands.py: add acknowledgments
> >   .gitignore: add compile_commands.json
> >   doc: add documentation for gen_compile_commands.py
> >   doc: add new section to build/tools
> >
> >  .gitignore                         |   3 +
> >  doc/build/gen_compile_commands.rst |  47 ++++++
> >  doc/build/index.rst                |   1 +
> >  doc/build/tools.rst                |  13 ++
> >  scripts/gen_compile_commands.py    | 230 +++++++++++++++++++++++++++++
> >  5 files changed, 294 insertions(+)
> >  create mode 100644 doc/build/gen_compile_commands.rst
> >  create mode 100755 scripts/gen_compile_commands.py
> >
> > --
> > 2.41.0
> >
> >
> Any updates?

Heinrich, were you happy with the doc patches?