summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-02 11:23:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-02 11:27:54 +0000
commitad9ad06056bb9ee1f9da54d60dfabb3240798018 (patch)
treebeda502df0b7a89b74a24e3620d7ffb9dddb8fff /meta
parent05a1f4a5a32c6cc392fa4480732101d668cd6f77 (diff)
downloadpoky-ad9ad06056bb9ee1f9da54d60dfabb3240798018.tar.gz
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. (From OE-Core rev: f2dfc50bdf403719d40d04488245fd37655b5480) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/terminal.bbclass3
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):
17 17
18 env = dict() 18 env = dict()
19 19
20 for v in os.environ:
21 env[v] = os.environ[v]
22
20 for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d): 23 for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
21 value = d.getVar(export, True) 24 value = d.getVar(export, True)
22 if value is not None: 25 if value is not None: