]> 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)
commitbcf637f54f6d2515d4c9c81808faf01848916152
tree97121bb2cfbdad70e9eaea63441211231dd37509
parent30cef68d2d19e48c5832b126d3f4a7aeae5a64d6
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