aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/recipeutils.py
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 17:57:54 +0100
commit6ba969f1ac5a1a0e277a21287fc5ae1622a6b14e (patch)
tree2b2c96fe07077c81b2125ba6964f5e45215b7772 /meta/lib/oe/recipeutils.py
parentb63fca00c2e24ad0c8b8b3c492d93ee4372fa92d (diff)
downloadopenembedded-core-contrib-6ba969f1ac5a1a0e277a21287fc5ae1622a6b14e.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). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
-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):
"""Find the file in which each of a list of variables is set.
Note: requires variable history to be enabled when parsing.
"""
- envdata = parse_recipe(fn, [], d)
varfiles = {}
for v in varlist:
- history = envdata.varhistory.variable(v)
+ history = d.varhistory.variable(v)
files = []
for event in history:
if 'file' in event and not 'flag' in event: