[PATCH V1 1/3] kbuild: serialize modules and modules_install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"make -j 16 modules modules_install" allows both targets to run concurrently
and produces warnings and incorrect results in the install area.  Force
them to be run serially, the same way that "install modules_install" is
already seralized.

Signed-off-by: Steve Sistare <steven.sistare@xxxxxxxxxx>
---
 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 026fbc4..4988dcc 100644
--- a/Makefile
+++ b/Makefile
@@ -291,9 +291,11 @@ ifneq ($(filter $(clean-targets),$(MAKECMDGOALS)),)
         endif
 endif
 
-# install and modules_install need also be processed one by one
-ifneq ($(filter install,$(MAKECMDGOALS)),)
-        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
+# modules_install and {install or modules} need to be processed one by one
+ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
+        ifneq ($(filter install,$(MAKECMDGOALS)),)
+	        mixed-targets := 1
+        else ifneq ($(filter modules,$(MAKECMDGOALS)),)
 	        mixed-targets := 1
         endif
 endif
-- 
1.8.3.1




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux