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

Andre McCurdy armccurdy at gmail.com
Sat Jan 25 06:34:32 UTC 2020

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