diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-08-16 12:46:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-19 18:05:40 +0100 |
commit | 0f23a3af8e96206fe486e018fef0ca0129f727e7 (patch) | |
tree | 8d693ffbe13b544c96983b4dc31ceae396621220 /scripts/lib | |
parent | 677e8c8e97ec377c5919943a9ca7257787b6ab81 (diff) | |
download | poky-0f23a3af8e96206fe486e018fef0ca0129f727e7.tar.gz |
lib/oe/recipeutils: avoid parsing in get_var_files()
Let's have the caller do this and then the function is a bit more
flexible (e.g. we can choose to parse with bbappends or not); fix up
calls to this function appropriately (of which there are only two, both
within devtool).
(From OE-Core rev: 6ba969f1ac5a1a0e277a21287fc5ae1622a6b14e)
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')
-rw-r--r-- | scripts/lib/devtool/standard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index e85e1ad860..e1c5584a83 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -630,7 +630,7 @@ def _update_recipe_srcrev(args, srctree, rd, config_data): | |||
630 | rd, args.append, None, wildcardver=args.wildcard_version, | 630 | rd, args.append, None, wildcardver=args.wildcard_version, |
631 | extralines=patchfields) | 631 | extralines=patchfields) |
632 | else: | 632 | else: |
633 | oe.recipeutils.patch_recipe(config_data, recipefile, patchfields) | 633 | oe.recipeutils.patch_recipe(rd, recipefile, patchfields) |
634 | 634 | ||
635 | if not 'git://' in orig_src_uri: | 635 | if not 'git://' in orig_src_uri: |
636 | logger.info('You will need to update SRC_URI within the recipe to ' | 636 | logger.info('You will need to update SRC_URI within the recipe to ' |
@@ -742,7 +742,7 @@ def _update_recipe_patch(args, config, srctree, rd, config_data): | |||
742 | updaterecipe = True | 742 | updaterecipe = True |
743 | if updaterecipe: | 743 | if updaterecipe: |
744 | logger.info('Updating recipe %s' % os.path.basename(recipefile)) | 744 | logger.info('Updating recipe %s' % os.path.basename(recipefile)) |
745 | oe.recipeutils.patch_recipe(config_data, recipefile, | 745 | oe.recipeutils.patch_recipe(rd, recipefile, |
746 | {'SRC_URI': ' '.join(srcuri)}) | 746 | {'SRC_URI': ' '.join(srcuri)}) |
747 | elif not updatepatches: | 747 | elif not updatepatches: |
748 | # Neither patches nor recipe were updated | 748 | # Neither patches nor recipe were updated |