diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-11 17:28:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-12 17:05:35 +0000 |
commit | 8fcf25bcda9deea558394cba3fcc7d3bbcff08dc (patch) | |
tree | 7c84c82d7d5a3ecb30e2c52acc8ada323c2f3811 /scripts | |
parent | 66c552ba1c8ccfe7b901ec4d51be8e3d161f9b40 (diff) | |
download | poky-8fcf25bcda9deea558394cba3fcc7d3bbcff08dc.tar.gz |
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.
(From OE-Core rev: bdaf0c798da21f9c15d9cb30ab4258a3c75c8bbf)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/scriptutils.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
179 | f.write('BB_STRICT_CHECKSUM = "ignore"\n') | 179 | f.write('BB_STRICT_CHECKSUM = "ignore"\n') |
180 | f.write('SRC_URI = "%s"\n' % srcuri) | 180 | f.write('SRC_URI = "%s"\n' % srcuri) |
181 | f.write('SRCREV = "%s"\n' % srcrev) | 181 | f.write('SRCREV = "%s"\n' % srcrev) |
182 | f.write('PV = "0.0+${SRCPV}"\n') | ||
182 | f.write('WORKDIR = "%s"\n' % tmpworkdir) | 183 | f.write('WORKDIR = "%s"\n' % tmpworkdir) |
183 | # Set S out of the way so it doesn't get created under the workdir | 184 | # Set S out of the way so it doesn't get created under the workdir |
184 | f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) | 185 | f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) |