summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2015-06-26 06:24:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-27 23:29:12 +0100
commit89878f590694a4c2452c92fbc7f4e85b63bd2288 (patch)
treea3c5b31833246a70a6582c6d11ddcc9be3df2eb6 /scripts/lib/recipetool
parente28c4ba7bf7c35682c8fe98657b41e3041c4794b (diff)
downloadpoky-89878f590694a4c2452c92fbc7f4e85b63bd2288.tar.gz
recipetool.append: add extralines arg to appendsrc
This makes the function more reusable for other sub-commands. (From OE-Core rev: c6feb6e97c9929560b1e3cec280c1d7976ecc030) Signed-off-by: Christopher Larson <kergoth@gmail.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/append.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 3f2f9a4f4f..ed7d0d4b27 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -337,7 +337,7 @@ def appendfile(args):
337 return 3 337 return 3
338 338
339 339
340def appendsrc(args, files, rd): 340def appendsrc(args, files, rd, extralines=None):
341 import oe.recipeutils 341 import oe.recipeutils
342 342
343 srcdir = rd.getVar('S', True) 343 srcdir = rd.getVar('S', True)
@@ -352,7 +352,7 @@ def appendsrc(args, files, rd):
352 simplified[str(simple_uri)] = uri 352 simplified[str(simple_uri)] = uri
353 353
354 copyfiles = {} 354 copyfiles = {}
355 extralines = [] 355 extralines = extralines or []
356 for newfile, srcfile in files.iteritems(): 356 for newfile, srcfile in files.iteritems():
357 src_destdir = os.path.dirname(srcfile) 357 src_destdir = os.path.dirname(srcfile)
358 if not args.use_workdir: 358 if not args.use_workdir: