Embedded Linux Development with Yocto Project by Salvador Otavio & Angolini Daiane

Embedded Linux Development with Yocto Project by Salvador Otavio & Angolini Daiane

Author:Salvador, Otavio & Angolini, Daiane [Salvador, Otavio]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2014-07-08T16:00:00+00:00


Usually, we need to access the BitBake database when writing a Python function. A convention among all metadata is that the d variable is used to point to the BitBake's database, and it is usually passed as the last parameter of a function.

So, in the preceding example, we ask the database the value of the SOMECONDITION variable and return a value depending on it.

The example results in DEPENDS containing dependencywithcond.

The inheritance system

The inherit directive is a 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 that into .bbclass for our recipes to make use of it. 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



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.