"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