Skip to contentSkip to conversation

tinfoil: Add shutdown method

PATCH New Richard Purdie 1 participant 1 message Jul 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/tinfoil.py +4 -0
index 8fc9be3..3095c20 100644
@@ -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):