summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-11 14:31:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-24 16:50:24 +0100
commit65318019cd8c6db19ae5d4526a0fa2d8c8ef25fa (patch)
tree7b97ae9eab7fecb7663c563327e608673d6d2a25 /scripts/lib
parent62afa02d01794376efab75623f42e7e08af08526 (diff)
downloadpoky-65318019cd8c6db19ae5d4526a0fa2d8c8ef25fa.tar.gz
recipes/classes/scripts: Drop SRCPV usage in OE-Core
Now that SRCPV isn't needed we can simplify things in a few places... (From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create.py2
-rw-r--r--scripts/lib/scriptutils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index e99e0714bf..f9dda3c2f9 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -690,7 +690,7 @@ def create_recipe(args):
690 srcpvprefix = 'svnr' 690 srcpvprefix = 'svnr'
691 else: 691 else:
692 srcpvprefix = scheme 692 srcpvprefix = scheme
693 lines_before.append('PV = "%s+%s${SRCPV}"' % (realpv or '1.0', srcpvprefix)) 693 lines_before.append('PV = "%s+%s"' % (realpv or '1.0', srcpvprefix))
694 pv_srcpv = True 694 pv_srcpv = True
695 if not args.autorev and srcrev == '${AUTOREV}': 695 if not args.autorev and srcrev == '${AUTOREV}':
696 if os.path.exists(os.path.join(srctree, '.git')): 696 if os.path.exists(os.path.join(srctree, '.git')):
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index f433106c9a..f23e53cba9 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -177,7 +177,7 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr
177 f.write('BB_STRICT_CHECKSUM = "ignore"\n') 177 f.write('BB_STRICT_CHECKSUM = "ignore"\n')
178 f.write('SRC_URI = "%s"\n' % srcuri) 178 f.write('SRC_URI = "%s"\n' % srcuri)
179 f.write('SRCREV = "%s"\n' % srcrev) 179 f.write('SRCREV = "%s"\n' % srcrev)
180 f.write('PV = "0.0+${SRCPV}"\n') 180 f.write('PV = "0.0+"\n')
181 f.write('WORKDIR = "%s"\n' % tmpworkdir) 181 f.write('WORKDIR = "%s"\n' % tmpworkdir)
182 # Set S out of the way so it doesn't get created under the workdir 182 # Set S out of the way so it doesn't get created under the workdir
183 f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) 183 f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc'))