[yocto] if for SRCREV

Mues, Pascal Pascal.Mues at aptiv.com
Wed Oct 10 00:27:10 PDT 2018


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. ****************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181010/13952213/attachment.html>


More information about the yocto mailing list