Re: Conditional include in image recipe.

Quentin Schulz

Hi Mauro,

On Sat, Aug 24, 2019 at 12:19:08PM +0200, Mauro Ziliani wrote:
Hi all

I working on a image recipe.

If I include the layer meta-raspberrypi layer  I'd like to include

While if i not include meta-raspberrypi layer I don't include
Or you can just safely ignore if the file does not exist (for Yocto,
which most likely means that the layer is not included).

You have two "include" mechanisms for non-class files:
* require
* include

"Require" requires the file to be there and fails otherwise while
"include" tries to include the file, if it's not there, it continues.

StreamUnlimited Engineering GmbH
High Tech Campus Vienna, Gutheil-Schoder-Gasse 10, 1100 Vienna, Austria

Join to automatically receive all group messages.