From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>,
Jonas Rebmann <jre@pengutronix.de>
Subject: Re: [PATCH] Makefile: include scripts/ in compile_commands.json
Date: Mon, 23 Feb 2026 10:17:28 +0100 [thread overview]
Message-ID: <177183824843.190921.18306060571432323587.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20260217-scripts-compile-commands-hack-v1-1-85afb2af566b@pengutronix.de>
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@pengutronix.de>
prev parent reply other threads:[~2026-02-23 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-17 13:56 Jonas Rebmann
2026-02-23 9:17 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=177183824843.190921.18306060571432323587.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jre@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox