From ae7ddee116bd7c9fe9326b6da879a1b7713a1dd1 Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Thu, 10 Dec 2015 15:53:06 +0100 Subject: [PATCH] kbuild: Do not run modules_install and install in paralel BugLink: http://bugs.launchpad.net/bugs/1629386 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 Signed-off-by: Tim Gardner --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 12b8d7b75bb6..baff226df55a 100644 --- a/Makefile +++ b/Makefile @@ -505,6 +505,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) # =========================================================================== -- 2.39.5