summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorMasahiro Yamada2019-03-26 05:02:19 +0100
committerMasahiro Yamada2019-03-28 15:46:54 +0100
commit221cc2d27ddc49b3e06d4637db02bf78e70c573c (patch)
tree886060b5f3f242cd763c0ea5c00ef80cda597c6f /.clang-format
parentcoccinelle: put_device: reduce false positives (diff)
downloadkernel-qcow2-linux-221cc2d27ddc49b3e06d4637db02bf78e70c573c.tar.gz
kernel-qcow2-linux-221cc2d27ddc49b3e06d4637db02bf78e70c573c.tar.xz
kernel-qcow2-linux-221cc2d27ddc49b3e06d4637db02bf78e70c573c.zip
kbuild: skip parsing pre sub-make code for recursion
When Make recurses to the top Makefile with sub-make-done unset, the code block surrounded by 'ifneq ($(sub-make-done),1) ... endif' is parsed multiple times. This happens for in-tree building of include/config/auto.conf, *-pkg, etc. with GNU Make 4.x. This is a slight regression by commit 688931a5ad4e ("kbuild: skip sub-make for in-tree build with GNU Make 4.x") in terms of performance since that code block contains one $(shell ...) invocation. Fix it by exporting the variable irrespective of sub-make being run. I renamed it because GNU Make cannot properly export variables containing hyphens. This is probably a bug of GNU Make, and the issue in Kbuild had already been reported by commit 2bfbe7881ee0 ("kbuild: Do not use hyphen in exported variable name"). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions