[bitbake-devel] devtool hardcodes using 'git' patchtool which causes errors

Adrian Ambrożewicz adrian.ambrozewicz at linux.intel.com
Mon Jan 27 08:56:12 UTC 2020

I was not aware of patchdir option, so kudos for you. Will keep that in 
mind, thanks!

W dniu 1/25/2020 o 07:34, Andre McCurdy pisze:
> On Thu, Jan 23, 2020 at 2:03 AM Adrian Ambrożewicz
> <adrian.ambrozewicz at linux.intel.com> wrote:
>> I've tried yet another approach, leveraging that this project is built
>> using cmake and it worked! I know it's not a generic fix, but it looks
>> like in bitbake nothing is really generic...
> An alternative approach (perhaps the official generic solution?) may
> be to use S="${WORKDIR}/git/project_dir", (re)create your patches from
> the top level of the git repo without any extra strip levels etc and
> then specify "patchdir" for each patch in SRC_URI, e.g. in your case
> patchdir would be set to ".." in order to apply patches from the
> directory one level above ${S}.
> SRC_URI += "file://mychanges.patch;patchdir=.."

More information about the bitbake-devel mailing list