Signed-off-by: Markus Lehtonen <[email protected]>
---
meta/lib/oe/recipeutils.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index f05b6c0..4bd5ce7 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -278,6 +278,14 @@ def copy_recipe_files(d, tgt_dir, whole_dir=False,
download=True):
return remotes
+def get_recipe_local_files(d):
+ """Get a list of local files in SRC_URI within a recipe."""
+ uris = (d.getVar('SRC_URI', True) or "").split()
+ fetch = bb.fetch2.Fetch(uris, d)
+ return dict([(fetch.ud[uri].basepath, fetch.localpath(uri)) for uri in uris
+ if uri.startswith('file://')])
+
+
def get_recipe_patches(d):
"""Get a list of the patches included in SRC_URI within a recipe."""
patchfiles = []
--
2.1.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core