From: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: [PATCH 08/10] bsd/mk: use the Q variable instead of @ for quiet commands
Date: Fri, 25 Apr 2014 13:59:46 +0200 [thread overview]
Message-ID: <1398427188-14914-9-git-send-email-olivier.matz@6wind.com> (raw)
In-Reply-To: <1398427188-14914-1-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
This allows to use V=1 to be more verbose to debug the build process
of a bsd kernel module.
Signed-off-by: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
---
mk/rte.bsdmodule.mk | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/mk/rte.bsdmodule.mk b/mk/rte.bsdmodule.mk
index 6224715..28b5189 100644
--- a/mk/rte.bsdmodule.mk
+++ b/mk/rte.bsdmodule.mk
@@ -74,24 +74,24 @@ build: _postbuild
# Link all sources in build directory
%_link: FORCE
$(if $(call compare,$(notdir $*),$*),\
- @if [ ! -f $(notdir $(*)) ]; then ln -nfs $(SRCDIR)/$(*) . ; fi,\
- @if [ ! -f $(notdir $(*)) ]; then ln -nfs $(SRCDIR)/$(*) . ; fi)
+ $(Q)if [ ! -f $(notdir $(*)) ]; then ln -nfs $(SRCDIR)/$(*) . ; fi,\
+ $(Q)if [ ! -f $(notdir $(*)) ]; then ln -nfs $(SRCDIR)/$(*) . ; fi)
# build module
$(MODULE).ko: $(SRCS_LINKS)
- @if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi
- @if [ ! -f $(notdir BSDmakefile) ]; then ln -nfs $(SRCDIR)/BSDmakefile . ; fi
- @MAKEFLAGS= $(BSDMAKE) -v
+ $(Q)if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi
+ $(Q)if [ ! -f $(notdir BSDmakefile) ]; then ln -nfs $(SRCDIR)/BSDmakefile . ; fi
+ $(Q)MAKEFLAGS= $(BSDMAKE)
# install module in $(RTE_OUTPUT)/kmod
$(RTE_OUTPUT)/kmod/$(MODULE).ko: $(MODULE).ko
- @echo INSTALL-MODULE $(MODULE).ko
- @[ -d $(RTE_OUTPUT)/kmod ] || mkdir -p $(RTE_OUTPUT)/kmod
- @cp -f $(MODULE).ko $(RTE_OUTPUT)/kmod
+ $(Q)echo INSTALL-MODULE $(MODULE).ko
+ $(Q)[ -d $(RTE_OUTPUT)/kmod ] || mkdir -p $(RTE_OUTPUT)/kmod
+ $(Q)cp -f $(MODULE).ko $(RTE_OUTPUT)/kmod
# install module
modules_install:
- @MAKEFLAGS= $(BSDMAKE) install
+ $(Q)MAKEFLAGS= $(BSDMAKE) install
.PHONY: clean
clean: _postclean
@@ -99,12 +99,12 @@ clean: _postclean
# do a make clean and remove links
.PHONY: doclean
doclean:
- @if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi
+ $(Q)if [ ! -f $(notdir Makefile) ]; then ln -nfs $(SRCDIR)/Makefile . ; fi
$(Q)$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR) O=$(RTE_KERNELDIR) clean
- @$(foreach FILE,$(SRCS-y) $(SRCS-n) $(SRCS-),\
+ $(Q)$(foreach FILE,$(SRCS-y) $(SRCS-n) $(SRCS-),\
if [ -h $(notdir $(FILE)) ]; then rm -f $(notdir $(FILE)) ; fi ;)
- @if [ -h $(notdir Makefile) ]; then rm -f $(notdir Makefile) ; fi
- @rm -f $(_BUILD_TARGETS) $(_INSTALL_TARGETS) $(_CLEAN_TARGETS) \
+ $(Q)if [ -h $(notdir Makefile) ]; then rm -f $(notdir Makefile) ; fi
+ $(Q)rm -f $(_BUILD_TARGETS) $(_INSTALL_TARGETS) $(_CLEAN_TARGETS) \
$(INSTALL-FILES-all)
include $(RTE_SDK)/mk/internal/rte.install-post.mk
--
1.9.2
next prev parent reply other threads:[~2014-04-25 11:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-25 11:59 [PATCH 00/10] bsd: fix compilation Olivier Matz
[not found] ` <1398427188-14914-1-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-04-25 11:59 ` [PATCH 01/10] bsd/pci: rename device and driver lists Olivier Matz
2014-04-25 11:59 ` [PATCH 02/10] bsd/devargs: introduce API and test Olivier Matz
2014-04-25 11:59 ` [PATCH 03/10] bsd/devargs: use devargs for vdev and PCI whitelist/blacklist Olivier Matz
2014-04-25 11:59 ` [PATCH 04/10] bsd/devargs: use a comma instead of semicolon to separate key/values Olivier Matz
2014-04-25 11:59 ` [PATCH 05/10] bsd/devargs: replace --use-device option by --pci-whitelist and --vdev Olivier Matz
2014-04-25 11:59 ` [PATCH 06/10] bsd/devargs: allow to provide arguments per pci device Olivier Matz
2014-04-25 11:59 ` [PATCH 07/10] bsd/nic_uio: fix module compilation with freebsd 10 Olivier Matz
2014-04-25 11:59 ` Olivier Matz [this message]
[not found] ` <1398427188-14914-9-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-04-25 13:19 ` [PATCH 08/10] bsd/mk: use the Q variable instead of @ for quiet commands Neil Horman
[not found] ` <20140425131912.GD14074-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-04-25 14:18 ` Thomas Monjalon
2014-04-25 11:59 ` [PATCH 09/10] bsd/mem: get hugepages config Olivier Matz
2014-04-25 11:59 ` [PATCH 10/10] bsd/mem: get physical address of any pointer Olivier Matz
2014-04-25 13:27 ` [PATCH 00/10] bsd: fix compilation Neil Horman
[not found] ` <20140425132754.GE14074-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-04-29 23:37 ` Thomas Monjalon
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=1398427188-14914-9-git-send-email-olivier.matz@6wind.com \
--to=olivier.matz-pdr9zngts4eavxtiumwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.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: 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).