summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-10-16 19:23:58 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:30 +0000
commit4ab7202c31482dcb42a4406ec5f35e06963a6eaf (patch)
treea645e12652e36365bfb52c21a3898ce4e10489c1 /bitbake/lib/bb/cooker.py
parentfdfdfc8ccb96ce8f2d4b9644d182b1e1a5a6af28 (diff)
downloadpoky-4ab7202c31482dcb42a4406ec5f35e06963a6eaf.tar.gz
bitbake: cooker: preserve pre and post configs
Additional config files passed to bitbake server with --read and --postread options are rewritten by client bitbake even if it doesn't use those options. This is a show stopper for toaster as toaster command line builds are based on the assumption that server is aware of toster configs, provided by --postread option. This behaviour is fixed by preserving values of --read and --postread options when bitbake server starts and restoring them if client bitbake doesn't explicitly specify them. (Bitbake rev: 02c64f7487ca8ec5d32c440f5002c4b8f64b76a6) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index a416d2efe1..276e42eec2 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -531,6 +531,11 @@ class BBCooker:
531 for o in options: 531 for o in options:
532 if o in ['prefile', 'postfile']: 532 if o in ['prefile', 'postfile']:
533 clean = False 533 clean = False
534 server_val = getattr(self.configuration, "%s_server" % o)
535 if not options[o] and server_val:
536 # restore value provided on server start
537 setattr(self.configuration, o, server_val)
538 continue
534 setattr(self.configuration, o, options[o]) 539 setattr(self.configuration, o, options[o])
535 for k in bb.utils.approved_variables(): 540 for k in bb.utils.approved_variables():
536 if k in environment and k not in self.configuration.env: 541 if k in environment and k not in self.configuration.env: