LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org> To: Sam Ravnborg <sam@ravnborg.org> Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH] kbuild: introduce KECHO convenience echo Date: Thu, 6 Nov 2008 03:31:34 -0500 [thread overview] Message-ID: <1225960295-30366-1-git-send-email-vapier@gentoo.org> (raw) There is a bunch of places in the build system where we do 'echo' to show some nice status lines. This means we still get output when running in silent mode. So declare a new KECHO variable that only does 'echo' when we are in a suitable verbose build mode. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- scripts/Kbuild.include | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 982dcae..9dc96cf 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -25,6 +25,13 @@ basetarget = $(basename $(notdir $@)) 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: # define filechk_sample -- 1.6.0.3
next reply other threads:[~2008-11-06 8:31 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-06 8:31 Mike Frysinger [this message] 2008-11-06 8:31 ` [PATCH] kbuild: use KECHO convenience echo Mike Frysinger 2008-11-21 22:01 ` Sam Ravnborg 2008-11-06 20:50 ` [PATCH] kbuild: introduce " Sam Ravnborg 2008-11-06 21:17 ` Mike Frysinger
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1225960295-30366-1-git-send-email-vapier@gentoo.org \ --to=vapier@gentoo.org \ --cc=linux-kbuild@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=sam@ravnborg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).