Difference between RDEPENDS and DEPENDS in Yocto

We normally observe these two (RDEPENDS and DEPENDS) whenever we open any recipe. What should we choose when we write our own recipe.

DEPENDS -> Build Time Dependency
RDEPENDS -> Run Time Dependency

DEPENDS: When a recipe 'A' is DEPENDS on recipe 'B'. In this case, Bitbake first builds recipe 'B' and then recipe 'A'

E.g. You need 'dbus' to be built before 'wpa_supplicant'.


RDEPENDS: When a recipe 'A' is RDEPENDS on recipe 'B'. In this case, Bitbake deploys 'B' on the target system when it deploys 'A'. 

E.g. 'perf' RDEPENDS on 'bash'


In other words, DEPENDS are those set of packages that should be available while building package, whereas RDEPENDS are set of packages that should be available during execution of the program.

Comments

Popular posts from this blog

bb.utils.contains yocto

PR, PN and PV Variable in Yocto