summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-25 22:23:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commit2abf8a699edd513405befbd1a0eafc8f55d6b514 (patch)
tree9815707d7cc45e6de4fda8be6ed0e58b0a92ed84 /bitbake/lib/bb/cache.py
parentf735627e7c5aeb421338db55f3905d74751d4b71 (diff)
downloadpoky-2abf8a699edd513405befbd1a0eafc8f55d6b514.tar.gz
bitbake: bitbake: Switch to using new override syntax
This change updates the datastore to use the new override syntax using colons instead of underscores exclusively. It is expected layers would have to be converted to work with bitbake after this change. Supporting mixed syntax isn't possible, it is only feasible to have one internal representation of overrides. Whilst we can't warn for every possible override that may be set in the old format, show errors for _append/_prepend/_remove since those should never be present. (Bitbake rev: 7dcf317cc141dc980634f8c18bfa84f83e57206a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 27eb271798..73bc6e9665 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -53,12 +53,12 @@ class RecipeInfoCommon(object):
53 53
54 @classmethod 54 @classmethod
55 def pkgvar(cls, var, packages, metadata): 55 def pkgvar(cls, var, packages, metadata):
56 return dict((pkg, cls.depvar("%s_%s" % (var, pkg), metadata)) 56 return dict((pkg, cls.depvar("%s:%s" % (var, pkg), metadata))
57 for pkg in packages) 57 for pkg in packages)
58 58
59 @classmethod 59 @classmethod
60 def taskvar(cls, var, tasks, metadata): 60 def taskvar(cls, var, tasks, metadata):
61 return dict((task, cls.getvar("%s_task-%s" % (var, task), metadata)) 61 return dict((task, cls.getvar("%s:task-%s" % (var, task), metadata))
62 for task in tasks) 62 for task in tasks)
63 63
64 @classmethod 64 @classmethod