Metadata

The metadata used by BitBake can be in several distinct forms; they are as follows:

  • Configuration (.conf) files
  • Recipes (.bb and .bbappend files)
  • Classes (.bbclass files)
  • Include (.inc) files

Configuration

Configuration files, which are denoted by the .conf extension, define various configuration variables that govern the project's build process. These files fall into several areas that define machine configuration options, distribution configuration options, compiler tuning options, general common configuration options, and user configuration options.

Classes

Class files, which are denoted by the .bbclass extension, contain information that is useful to share between metadata files. The BitBake source tree currently comes with one class metadata file called base.bbclass. You can find this file in the classes directory. The base.bbclass file is special since it is always included automatically for all recipes and classes. This class contains definitions for standard basic tasks such as fetching, unpacking, configuring (empty by default), compiling (runs any makefile present), installing (empty by default), and packaging (empty by default). These tasks are often overridden or extended by other classes added during the project development process.

Recipes

BitBake recipes, which are denoted by the .bb file extension (for example, bcm2835_1.38.bb ), are the most basic metadata files. These recipe files provide BitBake with the following information:

  • Descriptive information about the package
  • The version of the recipe
  • Existing dependencies
  • Where the source code resides
  • Whether the source code requires any patches
  • How to compile the source code
  • Where on the target machine to install the package being compiled
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.221.67