The first stages of building a recipe are to fetch and unpack the source code:
![]() |
The do_fetch
and
do_unpack
tasks fetch the source files
and unpack them into the work directory.
By default, everything is accomplished in the
Build Directory,
which has a defined structure.
For additional general information on the Build Directory,
see the
"build/
"
section.
Unpacked source files are pointed to by the
S
variable.
Each recipe has an area in the Build Directory where the
unpacked source code resides.
The name of that directory for any given recipe is defined from
several different variables.
You can see the variables that define these directories
by looking at the figure:
Briefly, the S
directory contains the
unpacked source files for a recipe.
The WORKDIR
directory is where all the
building goes on for a given recipe.