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.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 8379d0caf1..94495e1399 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -63,12 +63,11 @@ class BBCooker:
63 Manages one bitbake build run 63 Manages one bitbake build run
64 """ 64 """
65 65
66 def __init__(self, configuration, server): 66 def __init__(self, configuration, server_registration_cb):
67 self.status = None 67 self.status = None
68 self.appendlist = {} 68 self.appendlist = {}
69 69
70 if server: 70 self.server_registration_cb = server_registration_cb
71 self.server = server.BitBakeServer(self)
72 71
73 self.configuration = configuration 72 self.configuration = configuration
74 73
@@ -109,7 +108,7 @@ class BBCooker:
109 108
110 self.configuration.data = bb.data.init() 109 self.configuration.data = bb.data.init()
111 110
112 if not server: 111 if not self.server_registration_cb:
113 bb.data.setVar("BB_WORKERCONTEXT", "1", self.configuration.data) 112 bb.data.setVar("BB_WORKERCONTEXT", "1", self.configuration.data)
114 113
115 bb.data.inheritFromOS(self.configuration.data) 114 bb.data.inheritFromOS(self.configuration.data)
@@ -831,7 +830,7 @@ class BBCooker:
831 return True 830 return True
832 return retval 831 return retval
833 832
834 self.server.register_idle_function(buildFileIdle, rq) 833 self.server_registration_cb(buildFileIdle, rq)
835 834
836 def buildTargets(self, targets, task): 835 def buildTargets(self, targets, task):
837 """ 836 """
@@ -890,7 +889,7 @@ class BBCooker:
890 889
891 rq = bb.runqueue.RunQueue(self, self.configuration.data, self.status, taskdata, runlist) 890 rq = bb.runqueue.RunQueue(self, self.configuration.data, self.status, taskdata, runlist)
892 891
893 self.server.register_idle_function(buildTargetsIdle, rq) 892 self.server_registration_cb(buildTargetsIdle, rq)
894 893
895 def updateCache(self): 894 def updateCache(self):
896 if self.state == state.running: 895 if self.state == state.running: