diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-21 20:23:22 -0500 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-30 08:47:41 -0700 |
commit | 64d945b2b66ae6f71b7aebd713f1be047bd22bbe (patch) | |
tree | 802bd9e79e9637d1646e218748cd82e1c9ebcf6e /lib/bb/runqueue.py | |
parent | 49d8852c231e4437a9b29e0986a9acf365559546 (diff) | |
download | bitbake-64d945b2b66ae6f71b7aebd713f1be047bd22bbe.tar.gz |
Include exported variables in task process env
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index f5fc7bfff..5953d1dc3 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1063,6 +1063,7 @@ class RunQueueExecute: bb.msg.fatal(bb.msg.domain.RunQueue, "fork failed: %d (%s)" % (e.errno, e.strerror)) if pid == 0: pipein.close() + # Save out the PID so that the event can include it the # events bb.event.worker_pid = os.getpid() @@ -1081,6 +1082,7 @@ class RunQueueExecute: try: the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) the_data.setVar('BB_TASKHASH', self.rqdata.runq_hash[task]) + os.environ.update(bb.data.exported_vars(the_data)) bb.build.exec_task(fn, taskname, the_data) except Exception as exc: if not quieterrors: |