[yocto] recipe name vs. package name

Fabien Lahoudere fabien.lahoudere at collabora.co.uk
Fri Nov 10 00:27:37 PST 2017


Hi,

On Fri, 2017-11-10 at 10:16 +0200, Ran Shalit wrote:
> Hello,
> 
> I read somewhere that a recipe can contain more than one package and recipe name is not the same
> as package name.
> But in
> https://wiki.yoctoproject.org/wiki/Building_your_own_recipes_from_first_principles
> I see that package name (used in IMAGE_INSTALL_append) is actually the same as recipe name, and I
> also don't find inside recipe any mention of package name,
> 
> Can anyone help to understand where the package is actually named in recipes ?
> 

You can add more package in a recipe by appending new package name to PACKAGES in your recipe.

 https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#var-PACKAGES

Then in order to install your new package, You have to make your image to depend on it.

$ grep -rn PACKAGES meta

will show you a lot of recipes implementing this mechanism.

> Thank you,
> Ran
-- 
Fabien



More information about the yocto mailing list