diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 01c9ad190f..1d793693bf 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -677,6 +677,8 @@ def bbappend_recipe(rd, destlayerdir, srcfiles, install=None, wildcardver=False, | |||
677 | path: the original filename as it would appear in SRC_URI | 677 | path: the original filename as it would appear in SRC_URI |
678 | or None if it isn't already present. | 678 | or None if it isn't already present. |
679 | patchdir: the patchdir parameter | 679 | patchdir: the patchdir parameter |
680 | newname: the name to give to the new added file. None to use | ||
681 | the default value: basename(path) | ||
680 | You may pass None for this parameter if you simply want to specify | 682 | You may pass None for this parameter if you simply want to specify |
681 | your own content via the extralines parameter. | 683 | your own content via the extralines parameter. |
682 | install: dict mapping entries in srcfiles to a tuple of two elements: | 684 | install: dict mapping entries in srcfiles to a tuple of two elements: |
@@ -769,7 +771,10 @@ def bbappend_recipe(rd, destlayerdir, srcfiles, install=None, wildcardver=False, | |||
769 | for i, (newfile, param) in enumerate(srcfiles.items()): | 771 | for i, (newfile, param) in enumerate(srcfiles.items()): |
770 | srcurientry = None | 772 | srcurientry = None |
771 | if not 'path' in param or not param['path']: | 773 | if not 'path' in param or not param['path']: |
772 | srcfile = os.path.basename(newfile) | 774 | if 'newname' in param and param['newname']: |
775 | srcfile = param['newname'] | ||
776 | else: | ||
777 | srcfile = os.path.basename(newfile) | ||
773 | srcurientry = 'file://%s' % srcfile | 778 | srcurientry = 'file://%s' % srcfile |
774 | if params and params[i]: | 779 | if params and params[i]: |
775 | srcurientry = '%s;%s' % (srcurientry, ';'.join('%s=%s' % (k,v) for k,v in params[i].items())) | 780 | srcurientry = '%s;%s' % (srcurientry, ';'.join('%s=%s' % (k,v) for k,v in params[i].items())) |