summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2020-06-18 21:15:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-23 12:31:02 +0100
commitbb9e38171a234551bf51fc2885b8e3238c409431 (patch)
tree84b87a9370bee34461d2627bf5317443e173c406 /bitbake/lib/bb/cookerdata.py
parentf867f8b3664390a5ed09df3126cbd8c45e046b91 (diff)
downloadpoky-bb9e38171a234551bf51fc2885b8e3238c409431.tar.gz
bitbake: cookerdata: Add BBFILES_DYNAMIC inverse mode
Add an inverse mode for BBFILES_DYNAMIC. Entries where the layername is prefix with '!' will act in inverted mode including given glob mask in absence of the referenced layer. This is useful to backfill recipes from potentially missing layer. (Bitbake rev: bfd729cfe06351ccd0071004e23af1d04546c723) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 472423fdc8..24bf09c56b 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -387,10 +387,13 @@ class CookerDataBuilder(object):
387 invalid.append(entry) 387 invalid.append(entry)
388 continue 388 continue
389 l, f = parts 389 l, f = parts
390 if l in collections: 390 invert = l[0] == "!"
391 if invert:
392 l = l[1:]
393 if (l in collections and not invert) or (l not in collections and invert):
391 data.appendVar("BBFILES", " " + f) 394 data.appendVar("BBFILES", " " + f)
392 if invalid: 395 if invalid:
393 bb.fatal("BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:\n %s" % "\n ".join(invalid)) 396 bb.fatal("BBFILES_DYNAMIC entries must be of the form {!}<collection name>:<filename pattern>, not:\n %s" % "\n ".join(invalid))
394 397
395 layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split()) 398 layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split())
396 collections_tmp = collections[:] 399 collections_tmp = collections[:]