summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/__init__.py')
-rw-r--r--scripts/lib/devtool/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index 0405d22874..ff97dfc94b 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -129,7 +129,7 @@ def get_recipe_file(cooker, pn):
129 logger.error("Unable to find any recipe file matching %s" % pn) 129 logger.error("Unable to find any recipe file matching %s" % pn)
130 return recipefile 130 return recipefile
131 131
132def parse_recipe(config, tinfoil, pn, appends): 132def parse_recipe(config, tinfoil, pn, appends, filter_workspace=True):
133 """Parse recipe of a package""" 133 """Parse recipe of a package"""
134 import oe.recipeutils 134 import oe.recipeutils
135 recipefile = get_recipe_file(tinfoil.cooker, pn) 135 recipefile = get_recipe_file(tinfoil.cooker, pn)
@@ -138,9 +138,10 @@ def parse_recipe(config, tinfoil, pn, appends):
138 return None 138 return None
139 if appends: 139 if appends:
140 append_files = tinfoil.cooker.collection.get_file_appends(recipefile) 140 append_files = tinfoil.cooker.collection.get_file_appends(recipefile)
141 # Filter out appends from the workspace 141 if filter_workspace:
142 append_files = [path for path in append_files if 142 # Filter out appends from the workspace
143 not path.startswith(config.workspace_path)] 143 append_files = [path for path in append_files if
144 not path.startswith(config.workspace_path)]
144 else: 145 else:
145 append_files = None 146 append_files = None
146 return oe.recipeutils.parse_recipe(recipefile, append_files, 147 return oe.recipeutils.parse_recipe(recipefile, append_files,