• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

RDEPENDS V/s DEPENDS in Yocto

by admin

In order to satisfy dependencies, the recipes must declare what they need to have available during the build process. When an application depends on something to run, it is called a runtime dependency (these are packages necessary on the target in order to guarantee proper functioning). In this case, we don’t need to set the DEPENDS variable but the RDEPENDS variable in a recipe in order to inform BitBake. So in a nutshell,

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’. For example, 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’. For example, ‘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.

Build-time dependencies

BitBake uses the DEPENDS variable to manage build-time dependencies. The deptask varflag for a task signifies the task that must complete for each item in DEPENDS before that task can be executed.

Runtime dependencies

BitBake uses the PACKAGES and RDEPENDS variables to manage runtime dependencies. The PACKAGES variable lists all the runtime packages a recipe creates. Each of those packages can have RDEPENDS runtime dependencies. These are packages that must be installed for a given package to run. The rdeptask varflag for a task specifies which tasks must be completed for every runtime dependency before that task can be executed

Filed Under: Linux

Some more articles you might also be interested in …

  1. Linux / UNIX : How to find files which has SUID/SGID set
  2. “ntpq -pn” command returns with error “Name or service not known”
  3. How to truncate /var/log/lastlog File
  4. How to view past performance with sar in Linux
  5. dockerd Command Examples in Linux
  6. How to Disable TLS 1.1 Cockpit port 9090
  7. How to Create An LVM Snapshot Of The Root Filesystem And Restore To An Earlier State
  8. jstest: command not found
  9. 12 RPM (Red Hat Package Manager) Command Examples
  10. e2image Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright