aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-25 11:29:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-26 13:45:31 +0100
commitf5653e557b68a27e99a2a6a5c5a31d0ba0b56bcb (patch)
treedb75adfd12bf966b6e4cd3e5763e1a008d384d20 /bin
parent21c21fcc5871e81d8d497b6baed605cdd74c4571 (diff)
downloadbitbake-f5653e557b68a27e99a2a6a5c5a31d0ba0b56bcb.tar.gz
bitbake-layers: adapt to cooker change for saved environment
The Cooker requires a copy of the environment mapping, modify bitbake-layers to take one and pass it to the cooker. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-layers7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 3d563b5fc..d9f95d1e0 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -8,7 +8,7 @@
import cmd
import logging
-import os.path
+import os
import sys
bindir = os.path.dirname(__file__)
@@ -41,11 +41,12 @@ def main(args):
class Commands(cmd.Cmd):
def __init__(self):
cmd.Cmd.__init__(self)
-
+ initialenv = os.environ.copy()
self.returncode = 0
self.config = Config(parse_only=True)
self.cooker = bb.cooker.BBCooker(self.config,
- self.register_idle_function)
+ self.register_idle_function,
+ initialenv)
self.config_data = self.cooker.configuration.data
bb.providers.logger.setLevel(logging.ERROR)
self.cooker_data = None