Yocto: Where temporary source code resides for a package during build

During a build, the unpacked temporary source code used by recipes to build packages is available in the Build Directory as defined by the S variable.

Below is the default value for the S variable as defined in the meta/conf/bitbake.conf configuration file in the Source Directory: S = “${WORKDIR}/${BP}”

You should be aware that many recipes override the set S to ${WORKDIR}/git .
S variable. For example, recipes that fetch their source from Git usually

Note : The BP represents the base recipe name, which consists of the name and version:
BP = “${BPN}-${PV}”

The path to the work directory for the recipe ( WORKDIR ) is defined as follows:
The actual directory depends on several things:
TMPDIR : The top-level build output directory
MULTIMACH_TARGET_SYS : The target system identifier
PN : The recipe name
EXTENDPE : The epoch – (if PE is not specified, which is usually the case for most recipes, then EXTENDPE is blank)
PV : The recipe version
PR : The recipe revision
poky , a default Build Directory at poky/build , and
qemux86-poky-linux machine target system.

Related :   Save vimdiff output to html

Furthermore, suppose your recipe is named foo_1.3.0.bb .
As an example, assume a Source Directory top-level folder named poky , a default Build Directory at poky/build , and qemux86-poky-linux machine target system.

The work directory the build system uses to build the package would be as follows:


Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )


Leave a Comment

Android Android Applications Android Build system Android Commands Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded