Yocto Recipe / Some runtime variables


Recipe
.bb or .bbappend file
- Recipes describe how to handle a given package
- A recipe is a set of instructions to describe how to retrieve, patch, compile, install and generate binary packages for a given application.
- It also defines what build or runtime dependencies are required.
- The recipes are parsed by the BitBake build engine.
- The format of a recipe file name is <package-name>_<version>.bb
 
Some runtime variables
WORKDIR : The package location that was created after bitbake built the package.
$ bitbake -e vehicle | grep ^WORKDIR=
WORKDIR="/home/yocto/poky/build/tmp/work/arm-linux-gnueabi/vehicle/0.1-r0"

PN : package name(Extract from recipe file name)
PR : package revision
PV : package version

S : The location where bitbake unpacks the package.(where the source is located)
$ bitbake -e hello | grep ^S=
S="/home/yocto/poky/build/tmp/work/arm-linux-gnueabi/vehicle/0.1-r0"

D : Directory to import output files (destination directory)
$ bitbake -e hello | grep ^D=
D="/home/yocto/poky/build/tmp/work/arm-linux-gnueabi/vehicle/0.1-r0/image"

A command to be used after "D" path.
Bindir : /usr/bin
sbindir : /usr/sbin
libdir : /usr/lib
libexecdir : /usr/lib
sysconfdir : /etc
datadir : /usr/share
mandir : /usr/share/man
includedir : /usr/include

#Recipe #Runtime Variables #Yocto #Bitbake #Linux #Build system

No comments:

Post a Comment

Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore!

 🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢  It’...