3.5.1. Source Fetching

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 a working 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 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 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.