summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-23 21:47:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:52:16 +0000
commit19089aca83ce00a05dee60b2f40bad87c398fe39 (patch)
treeaa27a1b964ca89fa8669bbd17117f346e79cbef2 /bitbake/lib
parentb70bcb353d576887e6b6c15e636d9102fe9b6799 (diff)
downloadpoky-19089aca83ce00a05dee60b2f40bad87c398fe39.tar.gz
bitbake: add -B option to bind with interface
When start bitbake as a server only process, we need to assign certain interface to it. (Bitbake rev: 95b97d2dc6466ea3d99371f5b5bd68f6f3c99074) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index b5980c6084..c53cee488a 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -163,7 +163,7 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer):
163 # remove this when you're done with debugging 163 # remove this when you're done with debugging
164 # allow_reuse_address = True 164 # allow_reuse_address = True
165 165
166 def __init__(self, interface = ("localhost", 0)): 166 def __init__(self, interface):
167 """ 167 """
168 Constructor 168 Constructor
169 """ 169 """
@@ -267,8 +267,8 @@ class BitBakeServerConnection():
267 pass 267 pass
268 268
269class BitBakeServer(object): 269class BitBakeServer(object):
270 def initServer(self): 270 def initServer(self, interface = ("localhost", 0)):
271 self.server = BitBakeXMLRPCServer() 271 self.server = BitBakeXMLRPCServer(interface)
272 272
273 def addcooker(self, cooker): 273 def addcooker(self, cooker):
274 self.cooker = cooker 274 self.cooker = cooker