All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: how many ways to delete/de-activate a recipe's task?
Date: Thu, 12 Mar 2015 03:52:24 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.11.1503120340500.12180@localhost> (raw)
In-Reply-To: <1426096622.9114.48.camel@linuxfoundation.org>

On Wed, 11 Mar 2015, Richard Purdie wrote:

> On Wed, 2015-03-11 at 12:22 -0500, Mark Hatle wrote:
> > On 3/11/15 11:30 AM, Robert P. J. Day wrote:
> > >
> > >   i recall that richard purdie might have explained this once but i
> > > have no idea where that post is and i need to add something to it,
> > > anyway ... how many ways are there to "delete" a task from a recipe,
> > > and what are the differences?
> > >
> > >   so far, i've seen:
> > >
> > > 1) bitbake supports a "deltask" directive
> >
> > The task and all it's dependencies go away.  So anything dependent on it and the
> > things it depends on, are no longer dependent.
> >
> > > 2) you can use the [noexec] task flag
> >
> > The task and it's dependencies remain, but nothing is executed.
> >
> > > 3) i've also seen redefining the task with a no-op ":" command
> >
> > The task is executed and does nothing.  (I believe this dumps a stamp file and
> > the noexec does not.. but I may be wrong.)
>
> What Mark said. 3) is the old way of doing 2), we added 2) to make
> it more efficient since there is no task execution overhead (which
> at one point was measurable, it may be less so now).

  so that first part -- that 2) is a newer, tidier(?) way of doing 3)
-- is pretty much what i remember from once upon a time. good.

  as for 1), i'm still confused by that explanation. say we have the
dependency chain A -> B -> C ... A depends on B which depends on C. if
i "deltask B", then any dependency links which involve B will
disappear, both incoming and outgoing in the DAG. but will A be
adjusted to now depend on C? (i'm guessing not, just want to be sure.)

  finally, is it just a matter of personal taste whether one deletes a
task using "deltask" or uses [noexec]? i'm looking at examples under
OE and here are a couple.

  clearly, for image.bbclass, there are a *pile* of tasks that are not
relevant, so the following makes sense:

meta/classes/image.bbclass:do_fetch[noexec] = "1"
meta/classes/image.bbclass:do_unpack[noexec] = "1"
meta/classes/image.bbclass:do_patch[noexec] = "1"
meta/classes/image.bbclass:do_configure[noexec] = "1"
meta/classes/image.bbclass:do_compile[noexec] = "1"
meta/classes/image.bbclass:do_install[noexec] = "1"
meta/classes/image.bbclass:do_populate_sysroot[noexec] = "1"
meta/classes/image.bbclass:do_package[noexec] = "1"
meta/classes/image.bbclass:do_package_qa[noexec] = "1"
meta/classes/image.bbclass:do_packagedata[noexec] = "1"
meta/classes/image.bbclass:do_package_write_ipk[noexec] = "1"
meta/classes/image.bbclass:do_package_write_deb[noexec] = "1"
meta/classes/image.bbclass:do_package_write_rpm[noexec] = "1"
meta/classes/image.bbclass:do_bundle_initramfs[noexec] = "1"

  similarly, for native.bbclass, the following also makes sense, but
uses "deltask":

meta/classes/native.bbclass:deltask package
meta/classes/native.bbclass:deltask packagedata
meta/classes/native.bbclass:deltask package_qa
meta/classes/native.bbclass:deltask package_write_ipk
meta/classes/native.bbclass:deltask package_write_deb
meta/classes/native.bbclass:deltask package_write_rpm
meta/classes/native.bbclass:deltask package_write

  so why does the first use [noexec] and the second use deltask? is
there a functional difference?

rday

p.s. i believe i appreciate the difference in *mechanics* of the
above. [noexec] doesn't affect the DAG of task dependencies, it simply
turns off the execution of that recipe-specific task, while "deltask"
affects the actual underlying task DAG.

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


      reply	other threads:[~2015-03-12  7:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 16:30 how many ways to delete/de-activate a recipe's task? Robert P. J. Day
2015-03-11 17:22 ` Mark Hatle
2015-03-11 17:57   ` Richard Purdie
2015-03-12  7:52     ` Robert P. J. Day [this message]

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=alpine.LFD.2.11.1503120340500.12180@localhost \
    --to=rpjday@crashcourse.ca \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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 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.