diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 16:50:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 20:33:23 +0100 |
commit | e44ce85fe551677fc0dcc1da4f789a0c13093ff1 (patch) | |
tree | 3da319b4b65f3ade07c3886af6cc7cad961b595e /lib/bb/tinfoil.py | |
parent | 5196bfa9639eed2b1e6452f45775551203f8eeb4 (diff) | |
download | bitbake-contrib-e44ce85fe551677fc0dcc1da4f789a0c13093ff1.tar.gz |
tinfoil: Add shutdown method
One drawback to tinfoil is that once a cooker is created, it will hold
the cooker lock and stop any other bitbake execution against a directory.
Add a shutdown method to tinfoil, allowing other users to use
the build directory after the tinfoil usage is no longer needed.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tinfoil.py')
-rw-r--r-- | lib/bb/tinfoil.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py index 8fc9be303..3095c2049 100644 --- a/lib/bb/tinfoil.py +++ b/lib/bb/tinfoil.py @@ -84,6 +84,10 @@ class Tinfoil: else: self.parseRecipes() + def shutdown(self): + self.cooker.shutdown(force=True) + self.cooker.unlockBitbake() + class TinfoilConfigParameters(ConfigParameters): def __init__(self, **options): |