Re: [PATCH] gen_compile_command: Add support for separate KBUILD_OUTPUT directory

From: Nick Desaulniers
Date: Thu Jun 20 2019 - 15:53:36 EST


On Thu, Jun 20, 2019 at 11:45 AM Matthias Kaehlcke <mka@xxxxxxxxxxxx> wrote:
>
> gen_compile_command.py currently assumes that the .cmd files and the
> source code live in the same directory, which is not the case when
> a separate KBUILD_OUTPUT directory is used.

Great point; android builds the kernel outside of the source dir
(`make O=/non-source/path ...`). Thanks for the patch! BTW if CrOS is
doing cool stuff with compile_commands.json; I'd like to know!
Particularly; I'm curious if it's possible to generate Ninja build
files from compile_commands.json; I do miss Doug's Kbuild caching
patches' speedup.
Acked-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>

--
Thanks,
~Nick Desaulniers