aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-03 16:26:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-06 10:32:54 +0100
commita5d01e9ec7176ad16e106b100861b488bc22081f (patch)
treeecdfd1b3a02d5753705bed1ab64ee4076e6430e5 /bitbake/lib
parent307d0e13c08d0c9dc43170eb259be7a30ea67529 (diff)
downloadopenembedded-core-contrib-a5d01e9ec7176ad16e106b100861b488bc22081f.tar.gz
bitbake: bitbake: move configuration reading code
The configuration reading code should live in the main bitbake entry point, and the server modules should be supplied with correct configuration instead of attempting to parse from configuration files. This patch moves the endpoint address reading from XMLRPC to the bitbake main script. (Bitbake rev: ac5753274ff932e1d6f073ab4dab7bd6fe5355a1) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index 5dcaa6c7b0..6fc5543a80 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -340,9 +340,6 @@ class BitBakeXMLRPCClient(BitBakeBaseServer):
def saveConnectionDetails(self, remote):
self.remote = remote
- def saveConnectionConfigParams(self, configParams):
- self.configParams = configParams
-
def establishConnection(self, featureset):
# The format of "remote" must be "server:port"
try:
@@ -351,27 +348,6 @@ class BitBakeXMLRPCClient(BitBakeBaseServer):
except Exception as e:
bb.fatal("Failed to read remote definition (%s)" % str(e))
- # use automatic port if port set to -1, meaning read it from
- # the bitbake.lock file
- if port == -1:
- lock_location = "%s/bitbake.lock" % self.configParams.environment.get('BUILDDIR')
- lock = bb.utils.lockfile(lock_location, False, False)
- if lock:
- # This means there is no server running which we can
- # connect to on the local system.
- bb.utils.unlockfile(lock)
- return None
-
- try:
- lf = open(lock_location, 'r')
- remotedef = lf.readline()
- [host, port] = remotedef.split(":")
- port = int(port)
- lf.close()
- self.remote = remotedef
- except Exception as e:
- bb.fatal("Failed to read bitbake.lock (%s)" % str(e))
-
# We need our IP for the server connection. We get the IP
# by trying to connect with the server
try: