]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
kbuild: Do not run modules_install and install in paralel
authorMichal Marek <mmarek@suse.cz>
Thu, 10 Dec 2015 14:53:06 +0000 (15:53 +0100)
committerMichal Marek <mmarek@suse.cz>
Thu, 10 Dec 2015 14:53:06 +0000 (15:53 +0100)
Based on a x86-only patch by Andy Lutomirski <luto@amacapital.net>

With modular kernels, 'make install' is going to need the installed
modules at some point to generate the initramfs.

Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile

index 3a0234f50f36fb45461fe235c1a91addd4d6214b..b6b968e7f9dc8863288ad4934ad1d104ca042bb5 100644 (file)
--- 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)
 # ===========================================================================