]> git.baikalelectronics.ru Git - kernel.git/commit
gen_compile_commands: remove the warning about too few .cmd files
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Aug 2020 14:56:17 +0000 (23:56 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Aug 2020 15:44:33 +0000 (00:44 +0900)
commit7bf722eff2fe343becb68be290362ad262fc3e36
tree930b162ffde50ab2e4024a0873677a2e5abcde9c
parent3b2a7a8aa404a75eab739937306175bf30999edc
gen_compile_commands: remove the warning about too few .cmd files

This warning was useful when users previously needed to manually
build the kernel and run this script.

Now you can simply do 'make compile_commands.json', which updates
all the necessary build artifacts and automatically creates the
compilation database. There is no more worry for a mistake like
"Oh, I forgot to build the kernel".

Now, this warning is rather annoying.

You can create compile_commands.json for an external module:

  $ make M=/path/to/your/external/module compile_commands.json

Then, this warning is displayed since there are usually less than
300 files in a single module.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/gen_compile_commands.py