summaryrefslogtreecommitdiff
path: root/tools/scripts
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2012-11-05 15:15:24 +0000
committerDavid Howells <[email protected]>2012-11-19 22:10:14 +0000
commitca9dfc6cc45a8ae0297188f5fed23af242cc8a8d (patch)
tree44fe43e74218df4181469539f48e26f097c018e2 /tools/scripts
parent60606d42483feb118c555f3425bb31fdec6749b3 (diff)
tools: Define a Makefile function to do subdir processing
Define a Makefile function that can be called with $(call ...) to wrap the subdir make invocations in tools/Makefile. This will allow us in the next patch to insert bits in there to honour O= flags when called from the top-level Makefile. Signed-off-by: David Howells <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/scripts')
-rw-r--r--tools/scripts/Makefile.include8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
index 96ce80a3743b..4a9e3176f743 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -41,6 +41,14 @@ else
NO_SUBDIR = :
endif
+#
+# Define a callable command for descending to a new directory
+#
+# Call by doing: $(call descend,directory[,target])
+#
+descend = \
+ $(QUIET_SUBDIR0)$(1) $(QUIET_SUBDIR1) $(2)
+
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
QUIET_SUBDIR1 =