From 3161c8c4172b6128991dcb4d26c5c7e032b0ad5a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 6 Nov 2008 03:31:34 -0500 Subject: [PATCH] --- yaml --- r: 122971 b: refs/heads/master c: 5410ecc0def8955ab99810c5626cc7e156991896 h: refs/heads/master i: 122969: 82e427f415de5cafa279d5ee5c5de2ba42f74786 122967: 47609679d91d6a5dfaa4a32e1d3c664e9bbc316a v: v3 --- [refs] | 2 +- trunk/Documentation/kbuild/makefiles.txt | 14 ++++++++++++++ trunk/scripts/Kbuild.include | 7 +++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 9a3a0c6a3c96..1ba6bd88c988 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d03fab43c5ba4f5fa46db73c937e9b993a531d27 +refs/heads/master: 5410ecc0def8955ab99810c5626cc7e156991896 diff --git a/trunk/Documentation/kbuild/makefiles.txt b/trunk/Documentation/kbuild/makefiles.txt index 7a7753321a26..51104f9194a5 100644 --- a/trunk/Documentation/kbuild/makefiles.txt +++ b/trunk/Documentation/kbuild/makefiles.txt @@ -383,6 +383,20 @@ more details, with real examples. to prerequisites are referenced with $(src) (because they are not generated files). + $(kecho) + echoing information to user in a rule is often a good practice + but when execution "make -s" one does not expect to see any output + except for warnings/errors. + To support this kbuild define $(kecho) which will echo out the + text following $(kecho) to stdout except if "make -s" is used. + + Example: + #arch/blackfin/boot/Makefile + $(obj)/vmImage: $(obj)/vmlinux.gz + $(call if_changed,uimage) + @$(kecho) 'Kernel: $@ is ready' + + --- 3.11 $(CC) support functions The kernel may be built with several different versions of diff --git a/trunk/scripts/Kbuild.include b/trunk/scripts/Kbuild.include index 936940b541f9..8cf87e815e51 100644 --- a/trunk/scripts/Kbuild.include +++ b/trunk/scripts/Kbuild.include @@ -24,6 +24,13 @@ basetarget = $(basename $(notdir $@)) # Escape single quote for use in echo statements escsq = $(subst $(squote),'\$(squote)',$1) +### +# Easy method for doing a status message + kecho := : + quiet_kecho := echo +silent_kecho := : +kecho := $($(quiet)kecho) + ### # filechk is used to check if the content of a generated file is updated. # Sample usage: