diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-10 14:34:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 11:47:35 +0100 |
commit | f33ce7e742f46635658c400b82558cf822690b5e (patch) | |
tree | d117e76fe1ce25a53a1232e945518827d6e5877f /bin | |
parent | 1aa338a216350a2751fff52f866039343e9ac013 (diff) | |
download | bitbake-f33ce7e742f46635658c400b82558cf822690b5e.tar.gz |
BBHandler/cooker: Implement recipe and global classes
We have some confusion for users since some classes are meant to work
in the configuration space (or "globally") and some are meant to be
selected by recipes individually.
The cleanest way I could find to clarify this is to create "classes-global"
and "classes-recipe" directories which contain the approproate classes and
have bitbake switch scope between them at the appropriate point during
parsing. The existing "classes" directory is always searched as a fallback.
Once a class is moved to a specific directory, it will no longer be found
in the incorrect context. A good example from OE is that
INHERIT += "testimage"
will no longer work but
IMAGE_CLASSES += "testimage"
will, which makes the global scope cleaner by only including it where it
is useful and intended to be used (images).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake-worker | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker index 2f3e9f72f..7be39370b 100755 --- a/bin/bitbake-worker +++ b/bin/bitbake-worker @@ -457,6 +457,7 @@ class BitbakeWorker(object): for mc in self.databuilder.mcdata: self.databuilder.mcdata[mc].setVar("PRSERV_HOST", self.workerdata["prhost"]) self.databuilder.mcdata[mc].setVar("BB_HASHSERVE", self.workerdata["hashservaddr"]) + self.databuilder.mcdata[mc].setVar("__bbclasstype", "recipe") def handle_newtaskhashes(self, data): self.workerdata["newhashes"] = pickle.loads(data) |