summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/recipeutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
-rw-r--r--meta/lib/oe/recipeutils.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 36427eec91..ef69ef207f 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -563,6 +563,23 @@ def get_bbfile_path(d, destdir, extrapathhint=None):
563 confdata = bb.cookerdata.parse_config_file(destlayerconf, confdata) 563 confdata = bb.cookerdata.parse_config_file(destlayerconf, confdata)
564 pn = d.getVar('PN') 564 pn = d.getVar('PN')
565 565
566 # Parse BBFILES_DYNAMIC and append to BBFILES
567 bbfiles_dynamic = (confdata.getVar('BBFILES_DYNAMIC') or "").split()
568 collections = (confdata.getVar('BBFILE_COLLECTIONS') or "").split()
569 invalid = []
570 for entry in bbfiles_dynamic:
571 parts = entry.split(":", 1)
572 if len(parts) != 2:
573 invalid.append(entry)
574 continue
575 l, f = parts
576 invert = l[0] == "!"
577 if invert:
578 l = l[1:]
579 if (l in collections and not invert) or (l not in collections and invert):
580 confdata.appendVar("BBFILES", " " + f)
581 if invalid:
582 return None
566 bbfilespecs = (confdata.getVar('BBFILES') or '').split() 583 bbfilespecs = (confdata.getVar('BBFILES') or '').split()
567 if destdir == destlayerdir: 584 if destdir == destlayerdir:
568 for bbfilespec in bbfilespecs: 585 for bbfilespec in bbfilespecs: