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>
This commit is contained in:
parent
05a1f4a5a3
commit
ad9ad06056
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue