• Masahiro Yamada's avatar
    gen_compile_commands: remove the warning about too few .cmd files · 8b61f748
    Masahiro Yamada authored
    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: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
    8b61f748
gen_compile_commands.py 7.79 KB