Message ID | 20220211173331.2731792-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | bdaf0c798da21f9c15d9cb30ab4258a3c75c8bbf |
Headers | show |
Series | scriptutils: Fix handling of srcuri urls | expand |
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py index 47a08194d0d..adf81476f0c 100644 --- a/scripts/lib/scriptutils.py +++ b/scripts/lib/scriptutils.py @@ -179,6 +179,7 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr f.write('BB_STRICT_CHECKSUM = "ignore"\n') f.write('SRC_URI = "%s"\n' % srcuri) f.write('SRCREV = "%s"\n' % srcrev) + f.write('PV = "0.0+${SRCPV}"\n') f.write('WORKDIR = "%s"\n' % tmpworkdir) # Set S out of the way so it doesn't get created under the workdir f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc'))
Bitbake is now requiring there be a call to get_srcrev() when urls contain floating revisions. This breaks some recipetool workflows since it is running these queries to determine those revisions. Add a PV entry which triggers that call to avoid the errors. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- scripts/lib/scriptutils.py | 1 + 1 file changed, 1 insertion(+)