5.13. Excluding Recipes From the Build

You might find that there are groups of recipes or append files that you want to filter out of the build process. Usually, this is not necessary. However, on rare occasions where you might want to use a layer but exclude parts that are causing problems, such as introducing a different version of a recipe, you can use BBMASK to exclude the recipe.

It is possible to filter or mask out .bb and .bbappend files. You can do this by providing an expression with the BBMASK variable. Here is an example:

     BBMASK = "/meta-mymachine/recipes-maybe/"
            

Here, all .bb and .bbappend files in the directory that match the expression are ignored during the build process.

Note

The value you provide is passed to Python's regular expression compiler. The expression is compared against the full paths to the files. For complete syntax information, see Python's documentation at http://docs.python.org/release/2.3/lib/re-syntax.html.