Search code examples
openembeddedbitbake

how do i re-order bitbake tasks within a recipe


I am using bitbake (within Yocto) and I have a situation where I need to use 'autotools' however I need to run:

do_patch 

after

do_configure

I have tried many things and cannot get it to do this. It mostly complains about "circular dependencies" (probably well within reason)

Ideally, I'd like to see something like this:

rmtask do_patch
addtask do_patch after do_configure before do_compile

or

movetask do_patch after do_configure

Sadly, there seems to be no 'rmtask' or 'deltask' or 'movetask' keywords.

Any tricks for re-ordering the default tasks would be appreciated!

Thanks!


Solution

  • Two suggestions:

    1. If what you're trying to do is to patch the files generated during do_configure I would suggest that you fix the configure.ac and/or the Makefile.am files instead. That way it's going to be easier when you upgrade your yocto version.
    2. Add a new task with addtask and just call the patch command. See the pkgconfig recipe for an example.