• Masahiro Yamada's avatar
    kbuild: use -MMD instead of -MD to exclude system headers from dependency · 30a77297
    Masahiro Yamada authored
    This omits system headers from the generated header dependency.
    
    System headers are not updated unless you upgrade the compiler. Nor do
    they contain CONFIG options, so fixdep does not need to parse them.
    
    Having said that, the effect of this optimization will be quite small
    because the kernel code generally does not include system headers
    except <stdarg.h>. Host programs include a lot of system headers,
    but there are not so many in the kernel tree.
    
    At first, keeping system headers in .*.cmd files might be useful to
    detect the compiler update, but there is no guarantee that <stdarg.h>
    is included from every file. So, I implemented a more reliable way in
    the previous commit.
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    30a77297
Makefile.host 5.91 KB