diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-02 11:23:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-02 11:27:43 +0000 |
commit | f2dfc50bdf403719d40d04488245fd37655b5480 (patch) | |
tree | bda80363d8cf12bc145bf2c99f906196a14b8c9c | |
parent | 424d2339b462081010af6e7525a71f64d97ff05e (diff) | |
download | openembedded-core-f2dfc50bdf403719d40d04488245fd37655b5480.tar.gz openembedded-core-f2dfc50bdf403719d40d04488245fd37655b5480.tar.bz2 openembedded-core-f2dfc50bdf403719d40d04488245fd37655b5480.zip |
terminal: Ensure existing environment exports are preserved in devshell
After recent changes to terminal.bbclass, variables like PATH were no longer
preserved within the devshell. This change ensures they are inherited into
the environment of devshell and PATH for example has the correct values.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/terminal.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass index 4a3ddef04f..cec854d54a 100644 --- a/meta/classes/terminal.bbclass +++ b/meta/classes/terminal.bbclass @@ -17,6 +17,9 @@ def oe_terminal(command, title, d): env = dict() + for v in os.environ: + env[v] = os.environ[v] + for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d): value = d.getVar(export, True) if value is not None: |