summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-08-16 12:46:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 18:05:40 +0100
commit0f23a3af8e96206fe486e018fef0ca0129f727e7 (patch)
tree8d693ffbe13b544c96983b4dc31ceae396621220 /meta
parent677e8c8e97ec377c5919943a9ca7257787b6ab81 (diff)
downloadpoky-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 'meta')
-rw-r--r--meta/lib/oe/recipeutils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index cd742130de..d4fa72651c 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -79,10 +79,9 @@ def get_var_files(fn, varlist, d):
79 """Find the file in which each of a list of variables is set. 79 """Find the file in which each of a list of variables is set.
80 Note: requires variable history to be enabled when parsing. 80 Note: requires variable history to be enabled when parsing.
81 """ 81 """
82 envdata = parse_recipe(fn, [], d)
83 varfiles = {} 82 varfiles = {}
84 for v in varlist: 83 for v in varlist:
85 history = envdata.varhistory.variable(v) 84 history = d.varhistory.variable(v)
86 files = [] 85 files = []
87 for event in history: 86 for event in history:
88 if 'file' in event and not 'flag' in event: 87 if 'file' in event and not 'flag' in event: