[poky] Patch.bbclass URL Reasoning
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Mar 27 06:05:59 PDT 2012
On Tuesday 27 March 2012 14:58:23 Robert Abel wrote:
> On 27.03.2012 14:55, Paul Eggleton wrote:
> > However if I needed to do what you want to do I would do it differently -
> > instead of modifying the patches, why not just modify the file(s) in the
> > source code directly? I would suggest using sed in a
> > do_configure_prepend() to change the values in the source to the desired
> > value from a variable. Depending on the complexity you could have the
> > patches change the values to some easily replaceable string beforehand.
>
> That's exactly what I'm doing right now. However, since I'm patching the
> kernel and users could theoretically add patches containing my magic
> strings, I wanted to avoid a sed on git\* and instead only edit *.patch
> in ${WORKDIR}, which is why I'm asking why the copied patches go unused.
Well, I can't answer that, but I don't think it's too difficult to come up with
a string that's unlikely to ever occur in the kernel sources.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the poky
mailing list