Openembedded Core Discussions
 help / color / mirror / Atom feed
* Adding kernel patches using "git am"?
@ 2011-11-30 10:35 Ulf Samuelsson
  2011-11-30 15:11 ` Chris Larson
  2011-11-30 19:07 ` Bruce Ashfield
  0 siblings, 2 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2011-11-30 10:35 UTC (permalink / raw)
  To: openembedded-core

Is there a reason for using "patch" instead of "git am" on let's say the 
kernel.

If I want to do some modification, of the kernel, I can like Graeme 
description at
http://www.slimlogic.co.uk/2011/05/openembeddedangstrom-kernel-workflow/   
do
bitbake -c configure virtual/kernel

and then have an initialized git tree ready to be modified.

"git am" is of course more sensitive to the patch quality than "patch"
but that has some advantages as well.

It also makes the recipe more complex at this stage.

--
Best Regards
Ulf Samuelsson
eMagii




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

* Re: Adding kernel patches using "git am"?
  2011-11-30 10:35 Adding kernel patches using "git am"? Ulf Samuelsson
@ 2011-11-30 15:11 ` Chris Larson
  2011-11-30 19:07 ` Bruce Ashfield
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Larson @ 2011-11-30 15:11 UTC (permalink / raw)
  To: ulf, Patches and discussions about the oe-core layer; +Cc: openembedded-core

On Wed, Nov 30, 2011 at 3:35 AM, Ulf Samuelsson
<openembedded-core@emagii.com> wrote:
> Is there a reason for using "patch" instead of "git am" on let's say the
> kernel.
>
> If I want to do some modification, of the kernel, I can like Graeme
> description at
> http://www.slimlogic.co.uk/2011/05/openembeddedangstrom-kernel-workflow/
> do
> bitbake -c configure virtual/kernel
>
> and then have an initialized git tree ready to be modified.
>
> "git am" is of course more sensitive to the patch quality than "patch"
> but that has some advantages as well.
>
> It also makes the recipe more complex at this stage.

echo PATCHTOOL_pn-linux = "git" >> conf/local.conf # (note, uses
git-apply, not git-am, but it's a step in the direction you want,
anyway, and by inspecting patch.bbclass and lib/oe/patch.py and
looking for that patch tool, you can see how you'd go about adding one
for git-am if you desired it)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



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

* Re: Adding kernel patches using "git am"?
  2011-11-30 10:35 Adding kernel patches using "git am"? Ulf Samuelsson
  2011-11-30 15:11 ` Chris Larson
@ 2011-11-30 19:07 ` Bruce Ashfield
  1 sibling, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2011-11-30 19:07 UTC (permalink / raw)
  To: ulf, Patches and discussions about the oe-core layer; +Cc: openembedded-core

On 11-11-30 05:35 AM, Ulf Samuelsson wrote:
> Is there a reason for using "patch" instead of "git am" on let's say the
> kernel.
>
> If I want to do some modification, of the kernel, I can like Graeme
> description at
> http://www.slimlogic.co.uk/2011/05/openembeddedangstrom-kernel-workflow/ do
> bitbake -c configure virtual/kernel
>
> and then have an initialized git tree ready to be modified.
>
> "git am" is of course more sensitive to the patch quality than "patch"
> but that has some advantages as well.

Not answering the question directly, but if you use the linux-yocto
kernel and related infrastructure, patch is not used to apply changes
to the tree. It is done under the covers with guilt or git am applying
changes to the tree (along with other git operations for more complex 
situations).

Cheers,

Bruce

>
> It also makes the recipe more complex at this stage.
>
> --
> Best Regards
> Ulf Samuelsson
> eMagii
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




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

end of thread, other threads:[~2011-11-30 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 10:35 Adding kernel patches using "git am"? Ulf Samuelsson
2011-11-30 15:11 ` Chris Larson
2011-11-30 19:07 ` Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox