aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/mkmakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index 5325423ceab4..0cc044260744 100644
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -30,6 +30,13 @@ PATCHLEVEL = $4
30lastword = \$(word \$(words \$(1)),\$(1)) 30lastword = \$(word \$(words \$(1)),\$(1))
31makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST))) 31makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
32 32
33ifeq ("\$(origin V)", "command line")
34VERBOSE := \$(V)
35endif
36ifneq (\$(VERBOSE),1)
37Q := @
38endif
39
33MAKEARGS := -C $1 40MAKEARGS := -C $1
34MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir)) 41MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir))
35 42
@@ -40,7 +47,7 @@ MAKEFLAGS += --no-print-directory
40all := \$(filter-out all Makefile,\$(MAKECMDGOALS)) 47all := \$(filter-out all Makefile,\$(MAKECMDGOALS))
41 48
42all: 49all:
43 \$(MAKE) \$(MAKEARGS) \$(all) 50 \$(Q)\$(MAKE) \$(MAKEARGS) \$(all)
44 51
45Makefile:; 52Makefile:;
46 53