[OE-core] puzzled about definition of "build" task

Christopher Larson clarson at kergoth.com
Sun Aug 10 00:55:02 UTC 2014


On Sat, Aug 9, 2014 at 5:42 PM, Robert P. J. Day <rpjday at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140809/d542c91b/attachment-0002.html>


More information about the Openembedded-core mailing list