All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel-yocto.bbclass ignoring SRCREV?
@ 2014-05-21 12:33 Wolfgang Denk
  2014-05-21 12:44 ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2014-05-21 12:33 UTC (permalink / raw)
  To: yocto

Hi,

is my understanding of kernel-yocto.bbclass correct that it
effectively completely ignores any specific git commit ID that was
gien in SRCREV, but instead always checks out and uses the HEAD of the
respective branch?

Or am I missing something here?  My expectation was that we specify a
git commit ID (as the only reliable, truly unique identifier for a
specific source code version) in SRCREV, but instead it appears that
this information is effectively being ignored?

I can understand that there are situations where automatically using
the top commit of a branch (say, the latest stable version of some
package) may be useful, but should there not be some different way to
do that?

I mean, how can we make sure to ever be able to reproduce the very
same build if the git commit ID specified in SRCREV will not be used
for the checkout?

Thanks in advance.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"More software projects have gone awry for lack of calendar time than
for all other causes combined."
                         - Fred Brooks, Jr., _The Mythical Man Month_


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

* Re: kernel-yocto.bbclass ignoring SRCREV?
  2014-05-21 12:33 kernel-yocto.bbclass ignoring SRCREV? Wolfgang Denk
@ 2014-05-21 12:44 ` Bruce Ashfield
  2014-05-21 12:45   ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2014-05-21 12:44 UTC (permalink / raw)
  To: Wolfgang Denk, yocto

On 14-05-21 08:33 AM, Wolfgang Denk wrote:
> Hi,
>
> is my understanding of kernel-yocto.bbclass correct that it
> effectively completely ignores any specific git commit ID that was
> gien in SRCREV, but instead always checks out and uses the HEAD of the
> respective branch?
>
> Or am I missing something here?  My expectation was that we specify a
> git commit ID (as the only reliable, truly unique identifier for a
> specific source code version) in SRCREV, but instead it appears that
> this information is effectively being ignored?

kernel-yocto does respect SRCREV. It uses the routine do_validate_branches
to reset to a specific SRCREV as a baseline, it then starts processing
and applying BSP descriptions on top of that point.

We test SRCREV specific builds on a ongoing basis, so they do work,
and if a different behaviour is being seen .. that's a bug.

Cheers,

Bruce

>
> I can understand that there are situations where automatically using
> the top commit of a branch (say, the latest stable version of some
> package) may be useful, but should there not be some different way to
> do that?
>
> I mean, how can we make sure to ever be able to reproduce the very
> same build if the git commit ID specified in SRCREV will not be used
> for the checkout?
>
> Thanks in advance.
>
> Best regards,
>
> Wolfgang Denk
>



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

* Re: kernel-yocto.bbclass ignoring SRCREV?
  2014-05-21 12:44 ` Bruce Ashfield
@ 2014-05-21 12:45   ` Bruce Ashfield
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2014-05-21 12:45 UTC (permalink / raw)
  To: Wolfgang Denk, yocto

On 14-05-21 08:44 AM, Bruce Ashfield wrote:
> On 14-05-21 08:33 AM, Wolfgang Denk wrote:
>> Hi,
>>
>> is my understanding of kernel-yocto.bbclass correct that it
>> effectively completely ignores any specific git commit ID that was
>> gien in SRCREV, but instead always checks out and uses the HEAD of the
>> respective branch?
>>
>> Or am I missing something here?  My expectation was that we specify a
>> git commit ID (as the only reliable, truly unique identifier for a
>> specific source code version) in SRCREV, but instead it appears that
>> this information is effectively being ignored?
>
> kernel-yocto does respect SRCREV. It uses the routine do_validate_branches
> to reset to a specific SRCREV as a baseline, it then starts processing
> and applying BSP descriptions on top of that point.

And I forgot to point out that do_validate_branches() has been nearly
completely removed/rewritten as part of the upcoming yocto 1.7
development cycle. So what I mention above is more clear in the new
versions.

Bruce

>
> We test SRCREV specific builds on a ongoing basis, so they do work,
> and if a different behaviour is being seen .. that's a bug.
>
> Cheers,
>
> Bruce
>
>>
>> I can understand that there are situations where automatically using
>> the top commit of a branch (say, the latest stable version of some
>> package) may be useful, but should there not be some different way to
>> do that?
>>
>> I mean, how can we make sure to ever be able to reproduce the very
>> same build if the git commit ID specified in SRCREV will not be used
>> for the checkout?
>>
>> Thanks in advance.
>>
>> Best regards,
>>
>> Wolfgang Denk
>>
>



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

end of thread, other threads:[~2014-05-21 12:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-21 12:33 kernel-yocto.bbclass ignoring SRCREV? Wolfgang Denk
2014-05-21 12:44 ` Bruce Ashfield
2014-05-21 12:45   ` Bruce Ashfield

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.