naming tasks
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 andEXPORT_FUNCTIONS refers to do_patch
Thanks
David
"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_patchfound in the patch class? Most task seems to be calleddo_taskname. I am thinking that it has something to do with
scope but I am unsure.addtask refers to
do_patchandEXPORT_FUNCTIONSrefers todo_patchThanks
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
Quoted 5 lines · Chris Larson
"
EXPORT_FUNCTIONSdo_patch" in patch.bbclass just makesdo_patch->patch_do_patch. That way you can override thedo_patchfunction and call back to the patch.bbclassdo_patch(patch_do_patch) manually if need be, but if you don't,do_patchis still defined.EXPORT_FUNCTIONSwas 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_patchfound in the patch class? Most task seems to be calleddo_taskname. I am thinking that it has something to do with
scope but I am unsure.addtask refers to
do_patchandEXPORT_FUNCTIONSrefers todo_patchThanks
David_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-develSignature · 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