Skip to content

Commit

Permalink
kbuild: Do not run modules_install and install in paralel
Browse files Browse the repository at this point in the history
Based on a x86-only patch by Andy Lutomirski <[email protected]>

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

Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
michal42 committed Dec 10, 2015
1 parent a78f70e commit a85a41e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
# ===========================================================================
Expand Down

0 comments on commit a85a41e

Please sign in to comment.