]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: include Makefile.compiler only when compiler is needed
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 28 Feb 2021 06:10:28 +0000 (15:10 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Mar 2021 10:20:49 +0000 (19:20 +0900)
commita14efe0d73eb284f78ea2ce14d08b3cc768848fc
tree111d95479116d919eaa0b4cc3e2fbad1261d9da2
parentd9f4ff50d2aaadf7262ea651df4a145d8bdf53ce
kbuild: include Makefile.compiler only when compiler is needed

Since commit f2f02ebd8f38 ("kbuild: improve cc-option to clean up all
temporary files"), running 'make kernelversion' in a read-only source
tree emits a bunch of warnings:

  mkdir: cannot create directory '.tmp_12345': Permission denied

Non-build targets such as kernelversion, clean, help, etc. do not
need to evaluate $(call cc-option,) or friends. Skip Makefile.compiler
so $(call cc-option,) becomes no-op.

This not only fixes the warnings, but also runs non-build targets much
faster.

Basically, all installation targets should also be non-build targets.
Unfortunately, vdso_install requires the compiler because it builds
vdso before installtion. This is a problem that must be fixed by a
separate patch.

Reported-by: Israel Tsadok <itsadok@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile