A fairly standard way of doing this is to have an include file that overrides SRCREV for the recipes that you'd like to build from HEAD.  See, for example, the poky-bleeding.conf distro which includes poky-floating-revisions.inc.

You could have an include file which does the same so you toggle "development build" in once place (eg by including that file in local.conf) and everything which needs to switch to HEAD does.

Ross
Ross

On Wed, 10 Oct 2018 at 09:51, Mues, Pascal <Pascal.Mues@aptiv.com> wrote:

Hello,

 

on my recipe I would like to distinguish between release and other build.

The release shall just stay on a fixed “stable” version – where the other stuff shall just build latest greatest.

The easiest idea was have an environment variable set and check on recipe if this exist to switch the srcrev for Git.

As a pseudo code:

 

if env(Release)

   SRCREV = "613b64e3ba8e796e27e86560020d39d9dfd0407d"

else

   SRCREV = "autorev"

 

Unfortunately, I wasn’t able to find anything how this could be done.

Someone can help?

 

BR

Pascal

**************************************************************************************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. ****************************************************************************************
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto