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.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 33eb65e2f3..054dac8634 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -70,7 +70,7 @@ class BBCooker:
70 self.bb_cache = None 70 self.bb_cache = None
71 71
72 if server: 72 if server:
73 self.server = server.BitBakeServer(self, self.pre_serve, self.post_serve) 73 self.server = server.BitBakeServer(self)
74 74
75 self.configuration = configuration 75 self.configuration = configuration
76 76
@@ -925,6 +925,8 @@ class BBCooker:
925 925
926 926
927def server_main(cooker, func, *args): 927def server_main(cooker, func, *args):
928 cooker.pre_serve()
929
928 if cooker.configuration.profile: 930 if cooker.configuration.profile:
929 try: 931 try:
930 import cProfile as profile 932 import cProfile as profile
@@ -956,11 +958,12 @@ def server_main(cooker, func, *args):
956 958
957 print("Raw profiling information saved to profile.log and processed statistics to profile.log.processed") 959 print("Raw profiling information saved to profile.log and processed statistics to profile.log.processed")
958 960
959 return ret
960 else: 961 else:
961 return func(*args) 962 ret = func(*args)
962 963
964 cooker.post_serve()
963 965
966 return ret
964 967
965class CookerExit(bb.event.Event): 968class CookerExit(bb.event.Event):
966 """ 969 """