[yocto] Image with the right version inside

Alexander Kanavin alex.kanavin at gmail.com
Fri Aug 10 07:28:52 PDT 2018


Give the two recipes different names - app-release_1.0.bb and app-latest_git.bb

Alex

2018-08-10 15:36 GMT+02:00 Mauro Ziliani <mauro at faresoftware.it>:
> Hi all
>
> I need to do this scenario.
>
> I have 2 image recipes:
>
> - final.bb
>
> - testing.bb
>
> final.bb and testing.bb install the same application name app.
>
> For the app I build the recipe app_1.0.bb which downloads the source code
> from git with tag=1.0, app_git.bb which downloads the latest commit.
>
> - in final.bb I'd like to put the production version of the application:
> that is app_1.0.bb
>
> - in testing.bb I'd like to put the testing verstion of the application:
> that is app_git.bb
>
> Now, when I bitbake final, tha app_git is installed. This is not I want.
>
> How can I force final.bb to install app_1.0.bb?
>
> I tryed PREFERRED_VERSION_app="1.0" in final.bb recipe but it seems not
> work.
>
>
> Thansk all
>
>    Mauro
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list