mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
recipetool: replace version in S value
If a versioned recipe filename is specified, replace the version in the
value of S with ${PV} just as we do with SRC_URI to make future upgrades
of the recipe easier.
(From OE-Core rev: 0b3c81ed5bcce9b608c4f804496d769288fe8c04)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bcfca54628
commit
3f739a86a9
@@ -212,6 +212,8 @@ def create_recipe(args):
|
||||
# This would be the default, so we don't need to set S in the recipe
|
||||
srcsubdir = ''
|
||||
if srcsubdir:
|
||||
if pv and pv not in 'git svn hg'.split():
|
||||
srcsubdir = srcsubdir.replace(pv, '${PV}')
|
||||
lines_before.append('S = "${WORKDIR}/%s"' % srcsubdir)
|
||||
lines_before.append('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user