[bitbake-devel] Bitbaking recipe with patchdir in SRC_URI creates parse error

Martin Jansa martin.jansa at gmail.com
Thu Feb 7 16:36:05 UTC 2019


Or just set patchdir value relative to ${S} to remove the WORKDIR reference.

On Thu, Feb 7, 2019 at 5:30 PM Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> On Wed, 2019-02-06 at 11:13 -0800, Cameron Kellough wrote:
> > Hi bitbake developers,
> > I'm working in a Rocko based bsp.  I've used the patchdir construct
> > in SRC_URI to apply patches in the tree where the build is expecting
> > them.  When I set PV="1.0+git${SRCPV}", I get the following error and
> > traceback if any of the patchdir directives are present in SRC_URI:
>
> The error is annoying but understandable as you've created a circular
> variable reference.
>
> In order to calculate PV which includes the git revision, it needs to
> expand SRC_URI. SRC_URI contains WORKDIR which includes PV.
>
> You could try defining a WORKDIR without PV in it, or a subset of PV?
>
> Cheers,
>
> Richard
>
>
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20190207/fa98bea7/attachment.html>


More information about the bitbake-devel mailing list