Hello, I want to do the following in anonymous python function
addtask some_task after do_compile before do_install
Getting some clue from externalsrc.bbclass I did the following
python __anonymous () {
tasks = d.getVar('__BBTASKS')
tasks.insert(tasks.index('do_install'), 'do_some_task')
d.setVar('__BBTASKS', tasks)
d.setVarFlag('do_some_task', 'deps', 'do_compile')
d.setVarFlag('do_install', 'deps', 'do_some_task')
tasklist = filter(lambda k: d.getVarFlag(k, "task"),
d.keys())
print tasklist
}
The above printed tasklist doesn't contain 'do_some_task'. I am able to
run the task manually via
bitbake -c some_task <recipe_name>
But, the task doesn't gets executed automatically after the do_compile
task. Is there anything else that should be done?
--
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
signature.asc
Description: This is a digitally signed message part
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
