Skip to contentSkip to conversation

naming tasks

DISCUSSION David Farning 2 participants 3 messages Nov 7, 2007 – Nov 8, 2007

lore
Share & tools
lore
#0 lore raw

Still working on the manual!

I've come across a question on how tasks are named. What is the purpose of the prefix patch in the def patch_do_patch found in the patch class? Most task seems to be called do_taskname. I am thinking that it has something to do with
scope but I am unsure.

addtask refers to do_patch and
EXPORT_FUNCTIONS refers to do_patch

Thanks
David

#1 lore raw

"EXPORT_FUNCTIONS do_patch" in patch.bbclass just makes do_patch -> patch_do_patch. That way you can override the do_patch function and call back to the patch.bbclass do_patch (patch_do_patch) manually if need be, but if you don't, do_patch is still defined. EXPORT_FUNCTIONS was just a convenience.

Quoted 19 lines · David Farning

Still working on the manual!

I've come across a question on how tasks are named. What is the purpose of the prefix patch in the def patch_do_patch found in the patch class? Most task seems to be called do_taskname. I am thinking that it has something to do with
scope but I am unsure.

addtask refers to do_patch and
EXPORT_FUNCTIONS refers to do_patch

Thanks
David

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 3 lines
Chris Larson - clarson at kergoth dot com
Dedicated Engineer - MontaVista - clarson at mvista dot com
Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus
#2 lore raw
Quoted 5 lines · Chris Larson

"EXPORT_FUNCTIONS do_patch" in patch.bbclass just makes do_patch -> patch_do_patch. That way you can override the do_patch function and call back to the patch.bbclass do_patch (patch_do_patch) manually if need be, but if you don't, do_patch is still defined. EXPORT_FUNCTIONS was just a convenience.

That make sense. Introducing modularity through namespaces.

Thanks
David Farning

Quoted 33 lines · David Farning
Quoted 19 lines

Still working on the manual!

I've come across a question on how tasks are named. What is the purpose of the prefix patch in the def patch_do_patch found in the patch class? Most task seems to be called do_taskname. I am thinking that it has something to do with
scope but I am unsure.

addtask refers to do_patch and
EXPORT_FUNCTIONS refers to do_patch

Thanks
David

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 8 lines
Chris Larson - clarson at kergoth dot com
Dedicated Engineer - MontaVista - clarson at mvista dot com
Core Developer/Architect - TSLib, BitBake, OpenEmbedded, OpenZaurus

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel