[yocto] Trouble patching a package

Saridakis, Dean (US SSA) dean.saridakis at baesystems.com
Mon Apr 22 05:56:10 PDT 2013


> > Seems like this ought to be pretty easy based on the docs - Not sure
> > what I've got wrong. I've added an append to my layer w/
> >
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> >
> > SRC_URI += "0001-yada-yada.patch"
> >
> > # Comment out while debugging
> > #PRINC := "${@int(PRINC) + 1}"
> >
> > The append file is in BBFILES. The patch file is in the same dir as
> > the append file (using a files sub-dir didn't help). Been doing
> > "bitbake -c patch -f pkg" to test/debug. (pkg is canutils, which is
> > autconf based)
> 
> Based on the path you're using, the patch needs to be in a subdir relative to
> your append file. Specifically, the subdir needs to have the same name as the
> package.
> 
> -Kevin

I've also tried just "${THISDIR}:" with the same results.

A lot of this stuff is still magic to me & I'm not sure how to go about demystifying it -- do I have to dig into the underlying classes?
E.g., what magic is required to pick up & apply a patch file? Anything named *.patch? 

> >
> > Ran into a couple thing I didn't understand trying to debug. I tried
> > adding
> >
> > do_patch_append() {
> >     bbnote "Got here "
> > }
> >
> > to log my append file was getting picked up, but the parse failed.
> >
> > Didn't get errors if the patch file name was wrong. The log only has a git ls-
> remote (which seems a little odd).
> >
> > Any help would be appreciated.
> >
> > Dean
> >
> 
> > _______________________________________________
> > yocto mailing list
> > yocto at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list