[yocto] Trouble patching a package
Kevin Strasser
kevin.strasser at linux.intel.com
Fri Apr 19 16:22:26 PDT 2013
On Fri, Apr 19, 2013 at 11:04:20PM +0000, Saridakis, Dean (US SSA) wrote:
> 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
>
> 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