From 7ce27b9fce8dd9c05d98878185f46721cc2e81f3 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 17 Aug 2015 12:12:20 +0100 Subject: bitbake: cooker: ensure prefile/postfile can work in memory resident mode The prefile/postfile options weren't working in memory resident mode because they weren't being passed through to the server, so ensure that they do get passed through and that the server is reset when the values come through. (Bitbake rev: a3f7dc042fc7b1c308bfd248431930eb8ba50326) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index fb38289397..a2b0bb5d7d 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -527,9 +527,11 @@ class BBCooker: self.handleCollections( self.data.getVar("BBFILE_COLLECTIONS", True) ) def updateConfigOpts(self, options, environment): + clean = True for o in options: + if o in ['prefile', 'postfile']: + clean = False setattr(self.configuration, o, options[o]) - clean = True for k in bb.utils.approved_variables(): if k in environment and k not in self.configuration.env: logger.debug(1, "Updating environment variable %s to %s" % (k, environment[k])) -- cgit v1.2.3-54-g00ecf