[Buildroot] [PATCH] apply-patches.sh: use series file to apply patches in proper order

Ludovic Desroches ludovic.desroches at atmel.com
Thu Mar 8 14:06:24 UTC 2012


Hi Samuel,

On Thu, Mar 08, 2012 at 11:48:07AM +0100, Samuel Martin wrote:
> Hi Ludovic, all,
> 
> > +    # If there is a series file, use it instead of using ls sort order
> > +    # to apply patches.
> > +    if [ -e "${path}/series" ] ; then
> > +        for i in `cat ${path}/series 2> /dev/null` ; do
> >             apply_patch "$path" "$i" || exit 1
> 
> Maybe i miss something,

In fact, no...

> but i don't see how you handle disabled
> patches in the series file, i means line starting by '#'?

I didn't know that I could face such case so I didn't handle it.

Is simply checking '#' presency at the beginning of the the patch name enough?


Regards

Ludovic


More information about the buildroot mailing list