diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-24 17:05:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-25 18:14:53 +0100 |
commit | b9bbb5c7b7ea010a098e19c8da34fd5ea667a39f (patch) | |
tree | db4630996fbebd794815d0cb9e0144ba4297ff7f /bitbake/lib/bb/cookerdata.py | |
parent | a1c956ab4cae61ab3640d0455887645940e85ab6 (diff) | |
download | poky-b9bbb5c7b7ea010a098e19c8da34fd5ea667a39f.tar.gz |
bitbake: main/server/process: Drop configuration object passing
The first thing the UIs do is update the server config from the UI. We
can just rely upon that and start the server with a standard config,
removing the need to pass the confusing configuration object around
as well as configParams, which contains a similar copy of some of the
data.
This makes memory resident bitbake work the same way as the normal
mode, removing the opportunity for some class of bugs.
The xmlrpcinterface and server_timeout values are passed in at server
startup time now and there no longer a second option in the
configuration which is effective ignored once the server starts.
(Bitbake rev: 783a03330802e83c525c55522e3ee2a933bded3a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 3baa9ade1b..190ff3ab82 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -136,22 +136,13 @@ class CookerConfiguration(object): | |||
136 | self.build_verbose_stdout = False | 136 | self.build_verbose_stdout = False |
137 | self.dry_run = False | 137 | self.dry_run = False |
138 | self.tracking = False | 138 | self.tracking = False |
139 | self.xmlrpcinterface = [] | ||
140 | self.server_timeout = None | ||
141 | self.writeeventlog = False | 139 | self.writeeventlog = False |
142 | self.server_only = False | ||
143 | self.limited_deps = False | 140 | self.limited_deps = False |
144 | self.runall = [] | 141 | self.runall = [] |
145 | self.runonly = [] | 142 | self.runonly = [] |
146 | 143 | ||
147 | self.env = {} | 144 | self.env = {} |
148 | 145 | ||
149 | def setConfigParameters(self, parameters): | ||
150 | for key in self.__dict__.keys(): | ||
151 | if key in parameters.options.__dict__: | ||
152 | setattr(self, key, parameters.options.__dict__[key]) | ||
153 | self.env = parameters.environment.copy() | ||
154 | |||
155 | def __getstate__(self): | 146 | def __getstate__(self): |
156 | state = {} | 147 | state = {} |
157 | for key in self.__dict__.keys(): | 148 | for key in self.__dict__.keys(): |