All of lore.kernel.org
 help / color / mirror / Atom feed
* Working with a git'ed kernel on the server
@ 2014-03-11 19:07 Andy Ng
  2014-03-11 19:09 ` Bruce Ashfield
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Ng @ 2014-03-11 19:07 UTC (permalink / raw)
  To: yocto

Hello list,

I have a git'ed kernel on a server. When I do make "push" changes to the kernel
and then I try bitbake core-image-minimal on my local host, the build
process does not pick up the
changes from the server. I just do bitbake virtual/kernel -c cleanall
to force it to get my latest kernel from the server.

Is there any way to make the recipe to sync to the server every time i
make a build?

Best regards,
Andy


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

* Re: Working with a git'ed kernel on the server
  2014-03-11 19:07 Working with a git'ed kernel on the server Andy Ng
@ 2014-03-11 19:09 ` Bruce Ashfield
  2014-03-11 19:22   ` Andy Ng
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Ashfield @ 2014-03-11 19:09 UTC (permalink / raw)
  To: Andy Ng, yocto

On 14-03-11 03:07 PM, Andy Ng wrote:
> Hello list,
>
> I have a git'ed kernel on a server. When I do make "push" changes to the kernel
> and then I try bitbake core-image-minimal on my local host, the build
> process does not pick up the
> changes from the server. I just do bitbake virtual/kernel -c cleanall
> to force it to get my latest kernel from the server.
>
> Is there any way to make the recipe to sync to the server every time i
> make a build?

Set your SRCREV to ${AUTOREV}, and you'll get what you want.

Bruce

>
> Best regards,
> Andy
>



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

* Re: Working with a git'ed kernel on the server
  2014-03-11 19:09 ` Bruce Ashfield
@ 2014-03-11 19:22   ` Andy Ng
  2014-03-11 21:53     ` Bruce Ashfield
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Ng @ 2014-03-11 19:22 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto

Thank you,

I've just noticed my bb file has:

SRCREV_pn-${PN} = "${AUTOREV}"

So it should be ok?


On Tue, Mar 11, 2014 at 7:09 PM, Bruce Ashfield
<bruce.ashfield@windriver.com> wrote:
> On 14-03-11 03:07 PM, Andy Ng wrote:
>>
>> Hello list,
>>
>> I have a git'ed kernel on a server. When I do make "push" changes to the
>> kernel
>> and then I try bitbake core-image-minimal on my local host, the build
>> process does not pick up the
>> changes from the server. I just do bitbake virtual/kernel -c cleanall
>> to force it to get my latest kernel from the server.
>>
>> Is there any way to make the recipe to sync to the server every time i
>> make a build?
>
>
> Set your SRCREV to ${AUTOREV}, and you'll get what you want.
>
> Bruce
>
>>
>> Best regards,
>> Andy
>>
>


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

* Re: Working with a git'ed kernel on the server
  2014-03-11 19:22   ` Andy Ng
@ 2014-03-11 21:53     ` Bruce Ashfield
  2014-03-11 22:05       ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Ashfield @ 2014-03-11 21:53 UTC (permalink / raw)
  To: Andy Ng; +Cc: yocto

On 2014-03-11, 3:22 PM, Andy Ng wrote:
> Thank you,
>
> I've just noticed my bb file has:
>
> SRCREV_pn-${PN} = "${AUTOREV}"
>
> So it should be ok?

That should be all you need.

Bruce

>
>
> On Tue, Mar 11, 2014 at 7:09 PM, Bruce Ashfield
> <bruce.ashfield@windriver.com> wrote:
>> On 14-03-11 03:07 PM, Andy Ng wrote:
>>>
>>> Hello list,
>>>
>>> I have a git'ed kernel on a server. When I do make "push" changes to the
>>> kernel
>>> and then I try bitbake core-image-minimal on my local host, the build
>>> process does not pick up the
>>> changes from the server. I just do bitbake virtual/kernel -c cleanall
>>> to force it to get my latest kernel from the server.
>>>
>>> Is there any way to make the recipe to sync to the server every time i
>>> make a build?
>>
>>
>> Set your SRCREV to ${AUTOREV}, and you'll get what you want.
>>
>> Bruce
>>
>>>
>>> Best regards,
>>> Andy
>>>
>>



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

* Re: Working with a git'ed kernel on the server
  2014-03-11 21:53     ` Bruce Ashfield
@ 2014-03-11 22:05       ` Paul Eggleton
  2014-03-11 22:10         ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2014-03-11 22:05 UTC (permalink / raw)
  To: Andy Ng; +Cc: yocto

On Tuesday 11 March 2014 17:53:04 Bruce Ashfield wrote:
> On 2014-03-11, 3:22 PM, Andy Ng wrote:
> > Thank you,
> > 
> > I've just noticed my bb file has:
> > 
> > SRCREV_pn-${PN} = "${AUTOREV}"
> > 
> > So it should be ok?
> 
> That should be all you need.

If this line is in a recipe you can remove the _pn-${PN} as well as that won't 
be achieving anything.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: Working with a git'ed kernel on the server
  2014-03-11 22:05       ` Paul Eggleton
@ 2014-03-11 22:10         ` Paul Eggleton
  2014-03-12  7:25           ` Bruce Ashfield
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2014-03-11 22:10 UTC (permalink / raw)
  To: Andy Ng; +Cc: yocto

On Tuesday 11 March 2014 22:05:53 Paul Eggleton wrote:
> On Tuesday 11 March 2014 17:53:04 Bruce Ashfield wrote:
> > On 2014-03-11, 3:22 PM, Andy Ng wrote:
> > > Thank you,
> > > 
> > > I've just noticed my bb file has:
> > > 
> > > SRCREV_pn-${PN} = "${AUTOREV}"
> > > 
> > > So it should be ok?
> > 
> > That should be all you need.
> 
> If this line is in a recipe you can remove the _pn-${PN} as well as that
> won't be achieving anything.

Well, that is, unless somewhere else you have a SRCREV_pn-<PN> = line.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: Working with a git'ed kernel on the server
  2014-03-11 22:10         ` Paul Eggleton
@ 2014-03-12  7:25           ` Bruce Ashfield
  0 siblings, 0 replies; 7+ messages in thread
From: Bruce Ashfield @ 2014-03-12  7:25 UTC (permalink / raw)
  To: Paul Eggleton, Andy Ng; +Cc: yocto

On 2014-03-11, 6:10 PM, Paul Eggleton wrote:
> On Tuesday 11 March 2014 22:05:53 Paul Eggleton wrote:
>> On Tuesday 11 March 2014 17:53:04 Bruce Ashfield wrote:
>>> On 2014-03-11, 3:22 PM, Andy Ng wrote:
>>>> Thank you,
>>>>
>>>> I've just noticed my bb file has:
>>>>
>>>> SRCREV_pn-${PN} = "${AUTOREV}"
>>>>
>>>> So it should be ok?
>>>
>>> That should be all you need.
>>
>> If this line is in a recipe you can remove the _pn-${PN} as well as that
>> won't be achieving anything.
>
> Well, that is, unless somewhere else you have a SRCREV_pn-<PN> = line.

Agreed. Thanks for the clarification Paul!

Bruce

>
> Cheers,
> Paul
>



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

end of thread, other threads:[~2014-03-12  7:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 19:07 Working with a git'ed kernel on the server Andy Ng
2014-03-11 19:09 ` Bruce Ashfield
2014-03-11 19:22   ` Andy Ng
2014-03-11 21:53     ` Bruce Ashfield
2014-03-11 22:05       ` Paul Eggleton
2014-03-11 22:10         ` Paul Eggleton
2014-03-12  7:25           ` 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.