From bdaf0c798da21f9c15d9cb30ab4258a3c75c8bbf Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Feb 2022 17:28:07 +0000 Subject: scriptutils: Fix handling of srcuri urls 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 --- scripts/lib/scriptutils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/lib') diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py index 47a08194d0..adf81476f0 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')) -- cgit 1.2.3-korg