All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: diff between defining a "no-op" task and using [noexec]?
Date: Fri, 18 Oct 2013 10:41:24 +0100	[thread overview]
Message-ID: <1382089284.29912.528.camel@ted> (raw)
In-Reply-To: <alpine.DEB.2.02.1310170803260.23524@oneiric>

On Thu, 2013-10-17 at 08:07 -0400, Robert P. J. Day wrote:
>   using a concrete example, there's this from oe core's
> linux-dummy.bb:
> 
> do_configure() {
>         :
> }
> 
> do_compile () {
>         :
> }
> 
> do_install() {
>         :
> }
> 
>   what is the difference between the above and writing:
> 
> do_configure[noexec] = "1"
> do_compile[noexec] = "1"
> do_install[noexec] = "1"
> 
>   *is* there a difference? if so, does it have to do with the
> processing of other flags for that task?
> 
>   i can see that, technically, the first variation still defines a
> task to be run, while the second specifies that the task *not* be run,
> so i can appreciate that those two operations have different results.

The difference is just that, with the first case bitbake will run the
task, it will do nothing. In the second case, bitbake will not bother
running it at all.

Cheers,

Richard





  reply	other threads:[~2013-10-18  9:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17 12:07 diff between defining a "no-op" task and using [noexec]? Robert P. J. Day
2013-10-18  9:41 ` Richard Purdie [this message]
2013-10-18 13:13   ` Robert P. J. Day
2013-10-18 13:42     ` Richard Purdie
2013-10-18 13:49       ` Robert P. J. Day

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=1382089284.29912.528.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=rpjday@crashcourse.ca \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.