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>
This commit is contained in:
Masahiro Yamada 2019-06-04 19:14:01 +09:00
parent 2b8481be3c
commit bdd7714b6f
1 changed files with 5 additions and 2 deletions

View File

@ -1181,8 +1181,7 @@ export INSTALL_HDR_PATH = $(objtree)/usr
PHONY += archheaders archscripts PHONY += archheaders archscripts
PHONY += __headers PHONY += __headers
__headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts __headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
$(Q)$(MAKE) $(build)=scripts scripts/unifdef
PHONY += headers_install PHONY += headers_install
headers_install: __headers headers_install: __headers
@ -1204,6 +1203,10 @@ ifdef CONFIG_HEADERS_CHECK
all: headers_check all: headers_check
endif endif
PHONY += scripts_unifdef
scripts_unifdef: scripts_basic
$(Q)$(MAKE) $(build)=scripts scripts/unifdef
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Kernel selftest # Kernel selftest