summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-01-28 12:02:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-03 14:53:50 +0000
commit3f739a86a9c15c7378cab86859142db16812195a (patch)
tree702de11380407b9fabea6c21b563dd80ca05c43e /scripts/lib/recipetool
parentbcfca5462896621a6e494e502032ec6e60f26d66 (diff)
downloadpoky-3f739a86a9c15c7378cab86859142db16812195a.tar.gz
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>
Diffstat (limited to 'scripts/lib/recipetool')
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 6dba07819b..38f5eadaf5 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -212,6 +212,8 @@ def create_recipe(args):
212 # This would be the default, so we don't need to set S in the recipe 212 # This would be the default, so we don't need to set S in the recipe
213 srcsubdir = '' 213 srcsubdir = ''
214 if srcsubdir: 214 if srcsubdir:
215 if pv and pv not in 'git svn hg'.split():
216 srcsubdir = srcsubdir.replace(pv, '${PV}')
215 lines_before.append('S = "${WORKDIR}/%s"' % srcsubdir) 217 lines_before.append('S = "${WORKDIR}/%s"' % srcsubdir)
216 lines_before.append('') 218 lines_before.append('')
217 219