<div dir="ltr">Or just set patchdir value relative to ${S} to remove the WORKDIR reference.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 7, 2019 at 5:30 PM Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2019-02-06 at 11:13 -0800, Cameron Kellough wrote:<br>
> Hi bitbake developers,<br>
> I'm working in a Rocko based bsp. I've used the patchdir construct<br>
> in SRC_URI to apply patches in the tree where the build is expecting<br>
> them. When I set PV="1.0+git${SRCPV}", I get the following error and<br>
> traceback if any of the patchdir directives are present in SRC_URI:<br>
<br>
The error is annoying but understandable as you've created a circular<br>
variable reference.<br>
<br>
In order to calculate PV which includes the git revision, it needs to<br>
expand SRC_URI. SRC_URI contains WORKDIR which includes PV.<br>
<br>
You could try defining a WORKDIR without PV in it, or a subset of PV?<br>
<br>
Cheers,<br>
<br>
Richard<br>
<br>
<br>
-- <br>
_______________________________________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org" target="_blank">bitbake-devel@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><br>
</blockquote></div>