On Thursday 07 March 2013 13:12:57 Hans Beckérus wrote: > I have a patch file that needs to be applied to a source tree and the > patch file is copied properly to the ${WORKDIR} directory. > So far so good. But, the problem with this source tree is that it is > not built from the traditional root folder of the repo. > This means I need to change ${S} to point somewhere else. This also > causes the patch system to fail! > I did an override of do_patch() in my .bb and that seems to work, but > I do not like to use overrides unless I really have to. > So basically, is there some way to tell the built-in patch system to > use a different -pnum value?
Yes there is - use the striplevel parameter e.g (from make_3.82.bb): file://make-savannah-bug30612-handling_of_archives.patch;striplevel=0 Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto