[bitbake-devel] Bitbaking recipe with patchdir in SRC_URI creates parse error
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Feb 7 16:29:53 UTC 2019
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
More information about the bitbake-devel
mailing list