aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-23 16:50:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-23 20:33:23 +0100
commite44ce85fe551677fc0dcc1da4f789a0c13093ff1 (patch)
tree3da319b4b65f3ade07c3886af6cc7cad961b595e
parent5196bfa9639eed2b1e6452f45775551203f8eeb4 (diff)
downloadbitbake-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>
-rw-r--r--lib/bb/tinfoil.py4
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):