[poky] Patch.bbclass URL Reasoning
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Mar 27 05:55:11 PDT 2012
On Tuesday 27 March 2012 14:41:35 Robert Abel wrote:
> Bumpity...
>
> So nobody is aware of this issue or has ever tried to edit a patch
> before do_patch?
I'm aware of the behaviour, I can't speak to its intention (well, the part
where it symlinks back to the original patch I suspect intended to allow you
to update the patch in the metadata, but I don't know why we also copy the
patch to the WORKDIR as well).
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.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the poky
mailing list