aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2015-12-10 15:53:06 +0100
committerMoyster <oysterized@gmail.com>2018-11-29 16:57:56 +0100
commitd46698fb338953daf946780e6faecf0cae9f3989 (patch)
tree770f9d5a9a0d73609189b1e74c6e3bdbb956cbc3 /Makefile
parentf17c18671612ccbdd4d169f76d598bb58c3c3bd4 (diff)
kbuild: Do not run modules_install and install in paralel
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5f2ba9866..8f7aeaf85 100644
--- a/Makefile
+++ b/Makefile
@@ -490,6 +490,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)
# ===========================================================================