summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f6abc63487..9123605461 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -148,7 +148,7 @@ class BBCooker:
148 Manages one bitbake build run 148 Manages one bitbake build run
149 """ 149 """
150 150
151 def __init__(self, configuration, featureSet=None): 151 def __init__(self, configuration, featureSet=None, idleCallBackRegister=None):
152 self.recipecaches = None 152 self.recipecaches = None
153 self.skiplist = {} 153 self.skiplist = {}
154 self.featureset = CookerFeatures() 154 self.featureset = CookerFeatures()
@@ -158,6 +158,8 @@ class BBCooker:
158 158
159 self.configuration = configuration 159 self.configuration = configuration
160 160
161 self.idleCallBackRegister = idleCallBackRegister
162
161 bb.debug(1, "BBCooker starting %s" % time.time()) 163 bb.debug(1, "BBCooker starting %s" % time.time())
162 sys.stdout.flush() 164 sys.stdout.flush()
163 165
@@ -210,7 +212,7 @@ class BBCooker:
210 cooker.process_inotify_updates() 212 cooker.process_inotify_updates()
211 return 1.0 213 return 1.0
212 214
213 self.configuration.server_register_idlecallback(_process_inotify_updates, self) 215 self.idleCallBackRegister(_process_inotify_updates, self)
214 216
215 # TOSTOP must not be set or our children will hang when they output 217 # TOSTOP must not be set or our children will hang when they output
216 try: 218 try:
@@ -1423,7 +1425,7 @@ class BBCooker:
1423 return True 1425 return True
1424 return retval 1426 return retval
1425 1427
1426 self.configuration.server_register_idlecallback(buildFileIdle, rq) 1428 self.idleCallBackRegister(buildFileIdle, rq)
1427 1429
1428 def buildTargets(self, targets, task): 1430 def buildTargets(self, targets, task):
1429 """ 1431 """
@@ -1494,7 +1496,7 @@ class BBCooker:
1494 if 'universe' in targets: 1496 if 'universe' in targets:
1495 rq.rqdata.warn_multi_bb = True 1497 rq.rqdata.warn_multi_bb = True
1496 1498
1497 self.configuration.server_register_idlecallback(buildTargetsIdle, rq) 1499 self.idleCallBackRegister(buildTargetsIdle, rq)
1498 1500
1499 1501
1500 def getAllKeysWithFlags(self, flaglist): 1502 def getAllKeysWithFlags(self, flaglist):