[Buildroot] kernel patches suggestion : series file ->make it a variable

Sagaert Johan sagaert.johan at skynet.be
Sun Aug 18 00:26:29 UTC 2013


I have used single patch directories by just specifying the path, but how do I manage the order of the patches.
The series file was a good solution to force the order of patches to be applied.


-----Oorspronkelijk bericht-----
Van: Yann E. MORIN [mailto:yann.morin.1998 at gmail.com] Namens Yann E. MORIN
Verzonden: vrijdag 16 augustus 2013 22:13
Aan: Sagaert Johan
CC: 'Thomas Petazzoni'; buildroot at busybox.net
Onderwerp: Re: [Buildroot] kernel patches suggestion : series file ->make it a variable

Sagaert, All,

On 2013-08-16 22:04 +0200, Sagaert Johan spake thusly:
> -----Oorspronkelijk bericht-----
> Van: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
> Verzonden: vrijdag 16 augustus 2013 12:57
> Aan: Sagaert Johan
> CC: buildroot at busybox.net
> Onderwerp: Re: [Buildroot] kernel patches suggestion : series file 
> ->make it a variable
> Dear Sagaert Johan,
> On Fri, 16 Aug 2013 12:19:13 +0200, Sagaert Johan wrote:
> > Now I use a 'series'  file in my board directory to specify what patches that should be applied to the kernel.
> > I would love to see a menu entry where I can specify what list of 
> > patches that should be applied.(default value :series)
> What's the difference between what you're asking and the already existing BR2_LINUX_KERNEL_PATCH configuration option?
> Hi
> Also works, but it gives long lines in the menu if you have more than 
> 5 patches that have relative path's.
> (eg board/karo/tx53/linux-3.4.58/firmware.patch  ......) Is just a bit 
> difficult to see the full list then.

What you're missing, and Thomas explained, is...

>         string "Custom kernel patches"
>         help
>           A space-separated list of patches to apply to the
>           kernel. Each patch can be described as an URL, a local file
>           path, or a directory. In the case of a directory, all files
>           matching linux-*.patch in the directory will be applied.

... that you can pass the path to a directory that has all the patches, hence it becomes a singe entry:


with all your patches in there.

Furthermore, if you have a file named 'series' in that directory, then its content wil be read and patches applied in this order,
rather than in alphabetical order. So if you even have patches in sub-dir therein, you can always use a 'series' file, whith such a


And have those patches as they are listed in 'series'.

Yann E. MORIN.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' 
| conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

More information about the buildroot mailing list