]> git.baikalelectronics.ru Git - kernel.git/commit
gen_compile_commands: support *.o, *.a, modules.order in positional argument
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Aug 2020 14:56:15 +0000 (23:56 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Aug 2020 15:44:33 +0000 (00:44 +0900)
commit2c7b0e64b63b51d72babf3b519b7fc074ff2bbe0
treea555ab8b7787d73b76a438276fd941ad09b998eb
parent144b4d0db6d459adc6ced9fb3e75d2a2d200ced0
gen_compile_commands: support *.o, *.a, modules.order in positional argument

This script currently searches the specified directory for .cmd files.
One drawback is it may contain stale .cmd files after you rebuild the
kernel several times without 'make clean'.

This commit supports *.o, *.a, and modules.order as positional
parameters. If such files are given, they are parsed to collect
associated .cmd files. I added a generator helper for each of them.

This feature is useful to get the list of active .cmd files from the
last build, and will be used by the next commit to wire up the
compile_commands.json rule to the Makefile.

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