mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: server/process: Simplfy idle callback handler function
Having the idle callbacks abstracted via the configuration object makes no sense. Its like this for historical reasons from the multiple server backends but we don't need this now so simplfy. (Bitbake rev: e56c49717355c9493b07d5fc80981a95ad8a0ec8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -148,7 +148,7 @@ class BBCooker:
|
||||
Manages one bitbake build run
|
||||
"""
|
||||
|
||||
def __init__(self, configuration, featureSet=None):
|
||||
def __init__(self, configuration, featureSet=None, idleCallBackRegister=None):
|
||||
self.recipecaches = None
|
||||
self.skiplist = {}
|
||||
self.featureset = CookerFeatures()
|
||||
@@ -158,6 +158,8 @@ class BBCooker:
|
||||
|
||||
self.configuration = configuration
|
||||
|
||||
self.idleCallBackRegister = idleCallBackRegister
|
||||
|
||||
bb.debug(1, "BBCooker starting %s" % time.time())
|
||||
sys.stdout.flush()
|
||||
|
||||
@@ -210,7 +212,7 @@ class BBCooker:
|
||||
cooker.process_inotify_updates()
|
||||
return 1.0
|
||||
|
||||
self.configuration.server_register_idlecallback(_process_inotify_updates, self)
|
||||
self.idleCallBackRegister(_process_inotify_updates, self)
|
||||
|
||||
# TOSTOP must not be set or our children will hang when they output
|
||||
try:
|
||||
@@ -1423,7 +1425,7 @@ class BBCooker:
|
||||
return True
|
||||
return retval
|
||||
|
||||
self.configuration.server_register_idlecallback(buildFileIdle, rq)
|
||||
self.idleCallBackRegister(buildFileIdle, rq)
|
||||
|
||||
def buildTargets(self, targets, task):
|
||||
"""
|
||||
@@ -1494,7 +1496,7 @@ class BBCooker:
|
||||
if 'universe' in targets:
|
||||
rq.rqdata.warn_multi_bb = True
|
||||
|
||||
self.configuration.server_register_idlecallback(buildTargetsIdle, rq)
|
||||
self.idleCallBackRegister(buildTargetsIdle, rq)
|
||||
|
||||
|
||||
def getAllKeysWithFlags(self, flaglist):
|
||||
|
||||
Reference in New Issue
Block a user