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-24 23:28:34 +0100 |
commit | ada930055d4395c9565fac292858942cba678123 (patch) | |
tree | abf8f6acfe81423899349bee62712b0befa22dbc | |
parent | 901be2cb69892595443ed41ab4be285932db15eb (diff) | |
download | poky-ada930055d4395c9565fac292858942cba678123.tar.gz |
bitbake: 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.
(Bitbake rev: e44ce85fe551677fc0dcc1da4f789a0c13093ff1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/tinfoil.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 8fc9be3039..3095c20493 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
@@ -84,6 +84,10 @@ class Tinfoil: | |||
84 | else: | 84 | else: |
85 | self.parseRecipes() | 85 | self.parseRecipes() |
86 | 86 | ||
87 | def shutdown(self): | ||
88 | self.cooker.shutdown(force=True) | ||
89 | self.cooker.unlockBitbake() | ||
90 | |||
87 | class TinfoilConfigParameters(ConfigParameters): | 91 | class TinfoilConfigParameters(ConfigParameters): |
88 | 92 | ||
89 | def __init__(self, **options): | 93 | def __init__(self, **options): |