[yocto] require/include recipe.bb

Tomasz Michalski tmichalski23 at gmail.com
Wed Aug 22 23:53:44 PDT 2018


Hi
Moving common implementation to inc can be the case. However this what
cannot be moved to common part is:
SRCREV = "v1.2.4"
PR = "r125"
When I change something in the code related to recipe1.2.4.bb and add new
version of recipe1.2.5.bb this would require me to also update version of
otherRecipe.
I wanted to have recipe versioned and otherRecipe not versioned, that is
why I searched something like include recipe_%.bb.
For now I have in otherRecipe include recipe1.0.0.bb.

śr., 22 sie 2018 o 16:57 Maciej Pijanowski <maciej.pijanowski at 3mdeb.com>
napisał(a):

> How about moving the common part which is supposed to get included into
> the `.inc` file?
> To be fair, I have not seen any case of `include` or `require` statement
> with a recipe (.bb) file
> rather than with the (`.inc`) file. Did you?
>
> On 22.08.2018 15:34, Tomasz Michalski wrote:
>
> Hi
> I have recipes:
> recipe_1.0.0.bb
> recipe_1.0.1.bb
> ...
> recipe_3.4.0.bb
> If in some meta-layer I want to write some bbappend file to the latest
> fresh version I create file
> recipe_%.bbappend.
>
> I have file otherRecipe.bb which is not versioned and inherit to
> auto_package_version.
> In definition of otherRecipe I have
>
> DESCRIPTION = "some description"
> SECTION = "nameOfSection"
> LICENSE = "CLOSED"
>
> require recipe_1.0.0.bb
> (or
> include recipe_1.0.0.bb)
>
> How to change the above formula in order include the latest fresh recipe
> instead of concrete version?
> Replacing with "include recipe_%.bb" doesn't work.
>
>
>
>
>
> --
> Maciej Pijanowski
> Embedded Systems Engineerhttp://3mdeb.com | @3mdeb_com
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180823/1d5fa438/attachment-0001.html>


More information about the yocto mailing list