All of lore.kernel.org
 help / color / mirror / Atom feed
* if for SRCREV
@ 2018-10-10  7:27 Mues, Pascal
  2018-10-10  9:12 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: Mues, Pascal @ 2018-10-10  7:27 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]

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. ****************************************************************************************

[-- Attachment #2: Type: text/html, Size: 3793 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: if for SRCREV
  2018-10-10  7:27 if for SRCREV Mues, Pascal
@ 2018-10-10  9:12 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2018-10-10  9:12 UTC (permalink / raw)
  To: Pascal.Mues; +Cc: Yocto-mailing-list

[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]

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
>

[-- Attachment #2: Type: text/html, Size: 3294 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-10  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-10  7:27 if for SRCREV Mues, Pascal
2018-10-10  9:12 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.