diff options
Diffstat (limited to 'meta/lib/oe')
| -rw-r--r-- | meta/lib/oe/recipeutils.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 8f70d2eb21..4ca200d834 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
| @@ -482,7 +482,14 @@ def get_recipe_local_files(d, patches=False, archives=False): | |||
| 482 | unpack = fetch.ud[uri].parm.get('unpack', True) | 482 | unpack = fetch.ud[uri].parm.get('unpack', True) |
| 483 | if unpack: | 483 | if unpack: |
| 484 | continue | 484 | continue |
| 485 | ret[fname] = localpath | 485 | if os.path.isdir(localpath): |
| 486 | for root, dirs, files in os.walk(localpath): | ||
| 487 | for fname in files: | ||
| 488 | fileabspath = os.path.join(root,fname) | ||
| 489 | srcdir = os.path.dirname(localpath) | ||
| 490 | ret[os.path.relpath(fileabspath,srcdir)] = fileabspath | ||
| 491 | else: | ||
| 492 | ret[fname] = localpath | ||
| 486 | return ret | 493 | return ret |
| 487 | 494 | ||
| 488 | 495 | ||
