From: "Vladislav Valtchev (VMware)" <vladislav.valtchev@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
y.karadz@gmail.com,
"Vladislav Valtchev (VMware)" <vladislav.valtchev@gmail.com>
Subject: [PATCH] trace-cmd: Make the build messages to show only file names
Date: Thu, 8 Feb 2018 11:18:20 +0200 [thread overview]
Message-ID: <20180208091820.4920-1-vladislav.valtchev@gmail.com> (raw)
Currently, the typical trace-cmd build messages like "COMPILE <file>" and
"BUILD STATIC LIB <file>" show file's full path, instead of just the file
name, as it used to happen before the full support for out-of-tree builds.
This simple patch makes the build messages to look exactly like in the past
by stripping the directory part of each file path, before printing the
message.
Signed-off-by: Vladislav Valtchev (VMware) <vladislav.valtchev@gmail.com>
---
scripts/utils.mk | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/scripts/utils.mk b/scripts/utils.mk
index 06e8dc3..ad31f6e 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -3,14 +3,14 @@
ifeq ($(BUILDGUI), 1)
GUI = 'GUI '
- GOBJ = $@
GSPACE =
else
GUI =
GSPACE = " "
- GOBJ = $(GSPACE)$@
endif
+ GOBJ = $(GSPACE)$(notdir $(strip $@))
+
ifeq ($(VERBOSE),1)
Q =
@@ -81,22 +81,22 @@ define make_version.h
endef
define update_version.h
- ($(call make_version.h, $@.tmp); \
- if [ -r $@ ] && cmp -s $@ $@.tmp; then \
- rm -f $@.tmp; \
- else \
- echo ' UPDATE $@'; \
- mv -f $@.tmp $@; \
+ ($(call make_version.h, $@.tmp); \
+ if [ -r $@ ] && cmp -s $@ $@.tmp; then \
+ rm -f $@.tmp; \
+ else \
+ echo ' UPDATE '$(notdir $(strip $@)); \
+ mv -f $@.tmp $@; \
fi);
endef
define update_dir
(echo $1 > $@.tmp; \
- if [ -r $@ ] && cmp -s $@ $@.tmp; then \
- rm -f $@.tmp; \
- else \
- echo ' UPDATE $@'; \
- mv -f $@.tmp $@; \
+ if [ -r $@ ] && cmp -s $@ $@.tmp; then \
+ rm -f $@.tmp; \
+ else \
+ echo ' UPDATE '$(notdir $(strip $@)); \
+ mv -f $@.tmp $@; \
fi);
endef
--
2.14.1
next reply other threads:[~2018-02-08 9:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 9:18 Vladislav Valtchev (VMware) [this message]
2018-02-08 15:31 ` [PATCH] trace-cmd: Make the build messages to show only file names Steven Rostedt
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=20180208091820.4920-1-vladislav.valtchev@gmail.com \
--to=vladislav.valtchev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=y.karadz@gmail.com \
/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: link
Be 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).