From: Michal Marek Date: Thu, 10 Dec 2015 14:53:06 +0000 (+0100) Subject: kbuild: Do not run modules_install and install in paralel X-Git-Tag: firefly_0821_release~176^2~4^2~27^2~59 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=252644d83bf7c46d199687c4af2f0ee125ca7f62;p=firefly-linux-kernel-4.4.55.git kbuild: Do not run modules_install and install in paralel commit a85a41ed69f27c4c667d8c418df14b4fb220c4ad upstream. Based on a x86-only patch by Andy Lutomirski With modular kernels, 'make install' is going to need the installed modules at some point to generate the initramfs. Signed-off-by: Michal Marek Signed-off-by: Greg Kroah-Hartman --- diff --git a/Makefile b/Makefile index a6512f4eec9f..4a1cd02fa3c3 100644 --- a/Makefile +++ b/Makefile @@ -495,6 +495,12 @@ ifeq ($(KBUILD_EXTMOD),) endif endif endif +# install and module_install need also be processed one by one +ifneq ($(filter install,$(MAKECMDGOALS)),) + ifneq ($(filter modules_install,$(MAKECMDGOALS)),) + mixed-targets := 1 + endif +endif ifeq ($(mixed-targets),1) # ===========================================================================