diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-05 02:38:35 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-07 20:52:26 -0500 |
commit | 257edce66d31a345dff8ca9f1fd30c46e0f14058 (patch) | |
tree | 55e6519a06b02a8524c278e21d7d0c6bb432bb62 /Makefile | |
parent | 5e34bd1d548d440015d5bee3326e9d74cdebecd6 (diff) |
kbuild: exploit parallel building for CONFIG_HEADERS_CHECK
When CONFIG_HEADERS_CHECK is enabled, the headers_check is executed
as a serialized task in the vmlinux recipe.
Make it independent of vmlinux so that parallel building can process
the headers_check and other build targets simultaneously.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1035,9 +1035,6 @@ cmd_link-vmlinux = \ | |||
1035 | $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) | 1035 | $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) |
1036 | 1036 | ||
1037 | vmlinux: scripts/link-vmlinux.sh autoksyms_recursive $(vmlinux-deps) FORCE | 1037 | vmlinux: scripts/link-vmlinux.sh autoksyms_recursive $(vmlinux-deps) FORCE |
1038 | ifdef CONFIG_HEADERS_CHECK | ||
1039 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check | ||
1040 | endif | ||
1041 | ifdef CONFIG_GDB_SCRIPTS | 1038 | ifdef CONFIG_GDB_SCRIPTS |
1042 | $(Q)ln -fsn $(abspath $(srctree)/scripts/gdb/vmlinux-gdb.py) | 1039 | $(Q)ln -fsn $(abspath $(srctree)/scripts/gdb/vmlinux-gdb.py) |
1043 | endif | 1040 | endif |
@@ -1208,6 +1205,10 @@ headers_check: headers_install | |||
1208 | $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1 | 1205 | $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1 |
1209 | $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst) HDRCHECK=1 | 1206 | $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst) HDRCHECK=1 |
1210 | 1207 | ||
1208 | ifdef CONFIG_HEADERS_CHECK | ||
1209 | all: headers_check | ||
1210 | endif | ||
1211 | |||
1211 | # --------------------------------------------------------------------------- | 1212 | # --------------------------------------------------------------------------- |
1212 | # Kernel selftest | 1213 | # Kernel selftest |
1213 | 1214 | ||