[PATCH] Makefile: include scripts/ in compile_commands.json

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 23 01:17:28 PST 2026


On Tue, 17 Feb 2026 14:56:41 +0100, Jonas Rebmann wrote:
> Although in many cases, C files in scripts/ would, because they rely on
> the host toolchain and no unusual compiler flags, work fine in clangd
> without a compile commands database, the (typically cross) compile
> commands of the first entry in compile_commands.json are applied as
> defaults once generated via `make compile_commands.json`.
> 
> As valid .cmd files are already present in scripts/ and
> gen_compile_commands.py supports reading all cmd files in a subtree
> recursively, simply add scripts to the gen_compile_commands.py
> invocation. All enabled code in scripts/ is now properly covered by
> compile_commands.json
> 
> [...]

Applied, thanks!

[1/1] Makefile: include scripts/ in compile_commands.json
      https://git.pengutronix.de/cgit/barebox/commit/?id=6c054d0060b9 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list