]> git.dujemihanovic.xyz Git - u-boot.git/commit
scripts: Port Linux's gen_compile_commands.py to U-Boot
authorJoao Marcos Costa <jmcosta944@gmail.com>
Sun, 1 Oct 2023 10:00:29 +0000 (12:00 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 17:24:23 +0000 (13:24 -0400)
commitc852f2e74cc13e9cab4f8aac8fa21172c3746ffe
tree7922f83ed867d8329b6f91e65372a11ebb4ece56
parent6e0a75d3162a024cb0cdedd871d435e6ee782447
scripts: Port Linux's gen_compile_commands.py to U-Boot

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 <jmcosta944@gmail.com>
Tested-by: Joao Paulo Goncalves <joao.goncalves@toradex.com>
scripts/gen_compile_commands.py [new file with mode: 0755]