All of lore.kernel.org
 help / color / mirror / Atom feed
* puzzled about definition of "build" task
@ 2014-08-10  0:42 Robert P. J. Day
  2014-08-10  0:55 ` Christopher Larson
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2014-08-10  0:42 UTC (permalink / raw)
  To: OE Core mailing list


  first time i noticed this in base.bbclass:

addtask build after do_populate_sysroot
do_build = ""             <--- ????
do_build[func] = "1"
do_build[noexec] = "1"
do_build[recrdeptask] += "do_deploy"
do_build () {
        :
}

  what's with the lines

do_build = ""
do_build[func] = "1"

i've never seen that construct with any other tasks.

rday

-- 

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

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: puzzled about definition of "build" task
  2014-08-10  0:42 puzzled about definition of "build" task Robert P. J. Day
@ 2014-08-10  0:55 ` Christopher Larson
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Larson @ 2014-08-10  0:55 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

On Sat, Aug 9, 2014 at 5:42 PM, Robert P. J. Day <rpjday@crashcourse.ca>
wrote:

>   first time i noticed this in base.bbclass:
>
> addtask build after do_populate_sysroot
> do_build = ""             <--- ????
> do_build[func] = "1"
> do_build[noexec] = "1"
> do_build[recrdeptask] += "do_deploy"
> do_build () {
>         :
> }
>
>   what's with the lines
>
> do_build = ""
> do_build[func] = "1"
>
> i've never seen that construct with any other tasks.
>

I believe this was a remnant, from before bitbake started disliking empty
tasks. The "" and func = 1 bit defined it as a function but whose contents
were the empty string, but that's not something bitbake likes anymore,
hence the new definition with the :. See the git-blame info for those lines
to see the commits that last touched them: `git blame '-L/^do_build/,/^}/'
meta/classes/base.bbclass`
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1590 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-10  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-10  0:42 puzzled about definition of "build" task Robert P. J. Day
2014-08-10  0:55 ` Christopher Larson

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.