Search code examples
yoctobitbake

How can I get to the work directory of another recipe?


I want to create an own recipe in which I need both a binary from the U-Boot sources and a binary from the Kernel sources.

Can I get the paths to those sources (Svariable) in my own recipe on a save way?


Solution

  • Short answer, no.

    You can take the binaries from ${DEPLOY_DIR_IMAGE} though, if your recipe depends the deploy task from the respective recipe. That dependency is created by:

     do_configure[depends] = "u-boot:do_deploy"
    

    If your recipe include the line above, that means that u-boot will be put into the DEPLOY_DIR_IMAGE before the do_configure task from your recipe is being run.