November 2017
Intermediate to advanced
162 pages
4h 8m
English
The inherit directive provides the means of specifying what classes of functionality our recipe (.bb) requires. It is a rudimentary form of inheritance. For example, we can easily abstract out the tasks involved in using autoconf and automake, and put them into .bbclass for our recipes to make use of. A given .bbclass is located by searching for classes/filename.bbclass in BBPATH, where filename is what we inherited. So, in a recipe that uses autoconf or automake, we can use the following:
inherit autotools
This instructs BitBake to inherit autotools.bbclass, so it provides the default tasks that work fine for most autoconf or automake based projects.
Read now
Unlock full access