Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Marie" <cedric.marie@openmailbox.org>
To: buildroot@busybox.net
Subject: [Buildroot] CMake and VERBOSE variable
Date: Sun, 30 Aug 2015 22:27:39 +0200	[thread overview]
Message-ID: <55E3673B.40804@openmailbox.org> (raw)
In-Reply-To: <55D9016F.5080602@mind.be>

Hi,

Le 23/08/2015 01:10, Arnout Vandecappelle a ?crit :
>> When V=1, we should export Q = (empty) and a new variable BR2_VERBOSE = 1.
>> When V=0, we should export Q = @ and BR2_VERBOSE = (empty).
>
>   I don't think we should export anything at all, we should really do it per
> build system (which is problematic for generic-package of course).

You're right for Q. It is used in pkg-generic.mk, and should be defined 
only in this file, depending on V value and origin.

The benefits to exporting a new variable BR2_VERBOSE, is that we can 
check V value (0 or 1) and origin ("command line"?) only once, instead 
of repeating this double test in every .mk.

So now, thanks to your remarks, I've got something that is working for 
cmake and autotools.

* I have removed these exports from root Makefile: quiet Q KBUILD_VERBOSE.

* In pkg-generic.mk, I define Q=(empty) if V=1 from the command line, 
and Q=@ otherwise.

* In pkg-cmake.mk, I add "VERBOSE=1" in build command when V=1 from the 
command line.
(checked with libcuefile)

* In pkg-autotools.mk, I add "V=1" in build command when V=1 from the 
command line (and "V=0" otherwise, because V=1 is the default).
(checked with libpthsem)
NB: It would not even be necessary to modify pkg-autotools.mk, if V=0 
was the default.

I think that these modifications keep the behaviour unchanged.

Can I provide a patch with that?

Do you prefer to check V value and origin in all pkg-*.mk, or should I 
use BR2_VERBOSE to compute it once?

Waiting for your feedback,
Regards.

-- 
C?dric

  reply	other threads:[~2015-08-30 20:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09  7:54 [Buildroot] CMake and VERBOSE variable Cédric Marie
2015-06-10 22:00 ` Arnout Vandecappelle
2015-06-11  7:37   ` Cédric Marie
2015-06-11 20:05     ` Arnout Vandecappelle
2015-06-18  8:29       ` Cédric Marie
2015-06-21 19:23         ` Arnout Vandecappelle
2015-06-22  9:47           ` Cédric Marie
2015-06-22 10:50             ` Samuel Martin
2015-06-22 11:26               ` Cédric Marie
2015-06-22 11:57                 ` Samuel Martin
2015-06-22 14:22                   ` Cédric Marie
2015-08-20 13:04                     ` Cédric Marie
2015-08-22 23:10                       ` Arnout Vandecappelle
2015-08-30 20:27                         ` Cédric Marie [this message]
2015-08-31  7:28                         ` Thomas Petazzoni
2015-08-31 12:35                           ` Cédric Marie
2015-08-31 22:34                             ` Arnout Vandecappelle
2015-09-05 21:18                               ` Cédric Marie

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=55E3673B.40804@openmailbox.org \
    --to=cedric.marie@openmailbox.org \
    --cc=buildroot@busybox.net \
    /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