diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-04 06:14:01 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-15 06:57:02 -0400 |
commit | bdd7714b6f4cca75dd1b234306077150060c2f45 (patch) | |
tree | ef761c0ab1e841c7d05596058e91498f1dabb117 /Makefile | |
parent | 2b8481be3cc3b8dfb2704f4d33668d930474fac8 (diff) |
kbuild: build all prerequisites of headers_install simultaneously
Currently, scripts/unifdef is compiled after scripts_basic,
uapi-asm-generic, archheaders, and archscripts.
The proper dependency is just scripts_basic. There is no problem
to compile scripts/unifdef and other headers at the same time.
Split scripts_unifdef out in order to allow more parallel building.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1181,8 +1181,7 @@ export INSTALL_HDR_PATH = $(objtree)/usr | |||
1181 | PHONY += archheaders archscripts | 1181 | PHONY += archheaders archscripts |
1182 | 1182 | ||
1183 | PHONY += __headers | 1183 | PHONY += __headers |
1184 | __headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts | 1184 | __headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts |
1185 | $(Q)$(MAKE) $(build)=scripts scripts/unifdef | ||
1186 | 1185 | ||
1187 | PHONY += headers_install | 1186 | PHONY += headers_install |
1188 | headers_install: __headers | 1187 | headers_install: __headers |
@@ -1204,6 +1203,10 @@ ifdef CONFIG_HEADERS_CHECK | |||
1204 | all: headers_check | 1203 | all: headers_check |
1205 | endif | 1204 | endif |
1206 | 1205 | ||
1206 | PHONY += scripts_unifdef | ||
1207 | scripts_unifdef: scripts_basic | ||
1208 | $(Q)$(MAKE) $(build)=scripts scripts/unifdef | ||
1209 | |||
1207 | # --------------------------------------------------------------------------- | 1210 | # --------------------------------------------------------------------------- |
1208 | # Kernel selftest | 1211 | # Kernel selftest |
1209 | 1212 | ||