<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/scripts/gen_compile_commands.py, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>scripts: gen_compile_commands: fix invalid escape sequence warning</title>
<updated>2024-05-13T22:51:14+00:00</updated>
<author>
<name>Caleb Connolly</name>
<email>caleb.connolly@linaro.org</email>
</author>
<published>2024-05-03T15:18:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=830d83ec385ddf9eeb541027ef09453657deed56'/>
<id>830d83ec385ddf9eeb541027ef09453657deed56</id>
<content type='text'>
Since Python 3.12 unrecognised escape sequences trigger a SyntaxWarning.
Convert the '\#' string to a raw string so the backslash is correctly
used as a literal.

Ported from Linux commit dae4a0171e25 ("gen_compile_commands: fix invalid
escape sequence warning").

This updates the script to be in-line with Linux 6.9-rc6.

Signed-off-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt;
Reviewed-by: João Marcos Costa &lt;jmcosta944@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since Python 3.12 unrecognised escape sequences trigger a SyntaxWarning.
Convert the '\#' string to a raw string so the backslash is correctly
used as a literal.

Ported from Linux commit dae4a0171e25 ("gen_compile_commands: fix invalid
escape sequence warning").

This updates the script to be in-line with Linux 6.9-rc6.

Signed-off-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt;
Reviewed-by: João Marcos Costa &lt;jmcosta944@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/gen_compile_commands: update to Linux v6.7</title>
<updated>2024-02-06T21:31:06+00:00</updated>
<author>
<name>Brandon Maier</name>
<email>brandon.maier@collins.com</email>
</author>
<published>2024-01-22T18:45:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cb6f4d6510b83ad8aa393633b470a64a9a58b658'/>
<id>cb6f4d6510b83ad8aa393633b470a64a9a58b658</id>
<content type='text'>
Adds support for assembly files and updates the LINE_PATTERN so it
supports both "cmd" and "savedcmd", which allows reverting the U-Boot
modification in commit 97fbb2eb016b ("scripts/gen_compile_commands.py:
adapt _LINE_PATTERN").

Upstream commits:

- 880946158b011 gen_compile_commands.py: fix path resolve with symlinks in it
- 9e56d3be4bfd2 gen_compile_commands: Sort output compile commands by file name
- 52c15e7e79285 gen_compile_commands: Allow the line prefix to still be cmd_
- 1c67921444bf6 gen_compile_commands: add assembly files to compilation database

Signed-off-by: Brandon Maier &lt;brandon.maier@collins.com&gt;
Cc: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds support for assembly files and updates the LINE_PATTERN so it
supports both "cmd" and "savedcmd", which allows reverting the U-Boot
modification in commit 97fbb2eb016b ("scripts/gen_compile_commands.py:
adapt _LINE_PATTERN").

Upstream commits:

- 880946158b011 gen_compile_commands.py: fix path resolve with symlinks in it
- 9e56d3be4bfd2 gen_compile_commands: Sort output compile commands by file name
- 52c15e7e79285 gen_compile_commands: Allow the line prefix to still be cmd_
- 1c67921444bf6 gen_compile_commands: add assembly files to compilation database

Signed-off-by: Brandon Maier &lt;brandon.maier@collins.com&gt;
Cc: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/gen_compile_commands: fix usage message</title>
<updated>2023-10-11T17:24:55+00:00</updated>
<author>
<name>Joao Marcos Costa</name>
<email>jmcosta944@gmail.com</email>
</author>
<published>2023-10-01T10:00:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=311df90b3eab4dcf4124e360214b8535401c7d39'/>
<id>311df90b3eab4dcf4124e360214b8535401c7d39</id>
<content type='text'>
Replace mentions to 'kernel' by 'U-Boot' to avoid confusion.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace mentions to 'kernel' by 'U-Boot' to avoid confusion.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>doc: add documentation for gen_compile_commands.py</title>
<updated>2023-10-11T17:24:55+00:00</updated>
<author>
<name>Joao Marcos Costa</name>
<email>jmcosta944@gmail.com</email>
</author>
<published>2023-10-01T10:00:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3a83960b76700db4aed576620a7cc15eea861c0e'/>
<id>3a83960b76700db4aed576620a7cc15eea861c0e</id>
<content type='text'>
This documentation briefly explains what is a compilation database,
and how to use the script to generate one.

This is not a portage, as there was no original documentation in the
Linux sources.

Acknowledge the documentation in the script's header and in doc/build
index.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This documentation briefly explains what is a compilation database,
and how to use the script to generate one.

This is not a portage, as there was no original documentation in the
Linux sources.

Acknowledge the documentation in the script's header and in doc/build
index.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/gen_compile_commands.py: add acknowledgments</title>
<updated>2023-10-11T17:24:23+00:00</updated>
<author>
<name>Joao Marcos Costa</name>
<email>jmcosta944@gmail.com</email>
</author>
<published>2023-10-01T10:00:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6aacad2d53bc6dececad95d54383bbebd90a836e'/>
<id>6aacad2d53bc6dececad95d54383bbebd90a836e</id>
<content type='text'>
Add acknowledgments for porting and modifying the script. Of course, the
license, author, and copyright notice remain the same as in the original
script.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add acknowledgments for porting and modifying the script. Of course, the
license, author, and copyright notice remain the same as in the original
script.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/gen_compile_commands.py: fix docstring</title>
<updated>2023-10-11T17:24:23+00:00</updated>
<author>
<name>Joao Marcos Costa</name>
<email>jmcosta944@gmail.com</email>
</author>
<published>2023-10-01T10:00:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0972675dfb90840d8553c1378dddbed93e7cdf7b'/>
<id>0972675dfb90840d8553c1378dddbed93e7cdf7b</id>
<content type='text'>
The referred tool is now in U-Boot. Replace "the Linux kernel" by
"U-Boot" to make the docstring coherent.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The referred tool is now in U-Boot. Replace "the Linux kernel" by
"U-Boot" to make the docstring coherent.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/gen_compile_commands.py: adapt _LINE_PATTERN</title>
<updated>2023-10-11T17:24:23+00:00</updated>
<author>
<name>Joao Marcos Costa</name>
<email>jmcosta944@gmail.com</email>
</author>
<published>2023-10-01T10:00:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=97fbb2eb016b5fb14285690c6b928f6286afc481'/>
<id>97fbb2eb016b5fb14285690c6b928f6286afc481</id>
<content type='text'>
For U-Boot's context, the regular expression defined by _LINE_PATTERN
should be adapted. Replace 'savedcmd' by 'cmd'.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For U-Boot's context, the regular expression defined by _LINE_PATTERN
should be adapted. Replace 'savedcmd' by 'cmd'.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: Port Linux's gen_compile_commands.py to U-Boot</title>
<updated>2023-10-11T17:24:23+00:00</updated>
<author>
<name>Joao Marcos Costa</name>
<email>jmcosta944@gmail.com</email>
</author>
<published>2023-10-01T10:00:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c852f2e74cc13e9cab4f8aac8fa21172c3746ffe'/>
<id>c852f2e74cc13e9cab4f8aac8fa21172c3746ffe</id>
<content type='text'>
This script generates a database of compiler flags, namely
compile_commands.json. It is quite useful for text editors that use
clangd LSP (e.g. Vim, Neovim).

It was ported from Linux's sources:
- tag: v6.4
- revision 6995e2de6891c724bfeb2db33d7b87775f913ad1

Modifications for U-Boot compatibility will be added in a follow-up
commit.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This script generates a database of compiler flags, namely
compile_commands.json. It is quite useful for text editors that use
clangd LSP (e.g. Vim, Neovim).

It was ported from Linux's sources:
- tag: v6.4
- revision 6995e2de6891c724bfeb2db33d7b87775f913ad1

Modifications for U-Boot compatibility will be added in a follow-up
commit.

Signed-off-by: Joao Marcos Costa &lt;jmcosta944@gmail.com&gt;
Tested-by: Joao Paulo Goncalves &lt;joao.goncalves@toradex.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
