Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make yocto skip a recipe instead of stopping

I have a recipe that does a check during parsing. What I would like to do is instead of issuing a warning or stopping with an error, I would like to make yocto completely ignore the recipe as if it was never there. It could still error out if some other recipe RDEPENDS on it, but otherwise parsing would be successful.

Is this possible to do?

like image 464
user18197 Avatar asked Sep 20 '25 08:09

user18197


1 Answers

EDIT: I don't see a way to do it.

But you can "hide" specific recipe(s) using the BBMASK variable. The value is regexp for masking specific files or paths. You can also mask a whole directory.

We are using that mechanism and the variable is set in configuration file (distro configuration in our case, but it may be in a different configuration file).

You can find more information in the documentation for that variable: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-BBMASK

Some examples copied from the linked documentation:

BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
BBMASK += "/meta-oe/recipes-support/"
BBMASK += "/meta-foo/.*/openldap"
BBMASK += "opencv.*\.bbappend"
BBMASK += "lzma"
like image 147
Tomas Novotny Avatar answered Sep 23 '25 11:09

Tomas Novotny