I have a bitbake build environment with multiple recipes, which are dependent in a chain.
At the moment I have to do: bitbake recipe1 && bitbake recipe2
I have added: DEPENDS = "recipe1"
to the meta-recipe2/recipe2.bb
bitbake-layers show-cross-depends
shows this dependency.
There fore I expect running bitbake recipe2
to build recipe1 first, however it does not.
What do I need to do to build the dependencies listend in the DEPENDS variable?
Today, BitBake is the primary basis of the OpenEmbedded project, which is being used to build and maintain Linux distributions such as the Angstrom Distribution and which is used as the build tool for Linux projects such as the Yocto Project.
Build-time dependencies need to include all packages that are required for the package to build correctly and reliably. That is, a package needs to be included in build dependencies if at least one of the following conditions hold: A script or a Python module from this package is used (run, loaded) at build time.
BitBake recipes specify how a particular package is built. Recipes consist of the source URL (http, https, ftp, cvs, svn, git, local file system) of the package, dependencies and compile or install options. They also store the metadata for the package in standard variables.
Adding recipe1
to recipe2
by
DEPENDS += "recipe1"
should work fine for you. The line above means that before the do_configure
task of recipe2
can be run, the task do_populate_sysroot
fro mrecipe1
will have completed. This should work for all version of bitbake
and OpenEmbedded
.
You can achieve something similar to DEPENDS += "recipe1"
by
do_configure[depends] += "recipe1:do_populate_sysroot"
If necessary, you could manually set up your own custom depends like this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With