[yocto] Unable to modify patch files in u-boot recipe - quilt applies direct from layer files
Khem Raj
raj.khem at gmail.com
Wed Nov 4 17:16:32 PST 2015
> On Nov 4, 2015, at 11:57 AM, Chris Hallinan <challinan at gmail.com> wrote:
>
> Hi,
>
> I was trying to "patch a patch" in a u-boot recipe using standard
> bbappends technique. I added a task before do_patch after do_unpack
> to munge the patch that was broken. Here is what seems to happen:
>
> do_unpack:
> copies all the patch files from the metadata layer into ${WORKDIR}
>
> do_fix_patch (my additional task)
> uses sed or patch to apply a local fix to a broken patch in ${WORKDIR}
>
> do_patch
> creates a subdirectory in ${S} called "patches", and puts links to
> the actual files in the layer and uses those links back to the layer
> files to apply the patches.
>
> It seems quilt is using the actual layer files instead of the ones in
> ${WORKDIR}??
>
> This seems odd and somehow wrong. We copy the layer files into
> WORKDIR, and the unsuspecting user (me) thinks those are the files
> that do_patch will use.
>
> This one took me some time (and help) to figure out!
>
> Comments? Is this a bug? halfway in the middle of some architectural
> changes? Expected behavior?
while what you are doing is quite questionable. You seem to have a point. Most probably
copy of the files in workdir should be removed from happening.
>
> My workaround was to simply replace the entire patch.
you should use the quilt workflow and edit/refresh the patch once and copy it back to metadata once for all yes.
>
> -Chris
>
> --
> Life is like Linux - it never stands still.
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151104/bdf0d72a/attachment.pgp>
More information about the yocto
mailing list