]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: parse C= and M= before changing the working directory
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 21 Feb 2021 16:53:06 +0000 (01:53 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 24 Feb 2021 06:12:06 +0000 (15:12 +0900)
commit10e1a12bf32d4067da5a735e8a3d8b23f466836c
tree97121bb2cfbdad70e9eaea63441211231dd37509
parentbf9ed2bcdce43970a8b54cad78deaa0e5080ef6b
kbuild: parse C= and M= before changing the working directory

If Kbuild recurses to the top Makefile (for example, 'make deb-pkg'),
C= and M= are parsed over again, needlessly.

Parse them before changing the working directory. After that,
sub_make_done is set to 1, so they are parsed just once.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile