summaryrefslogtreecommitdiffstats
path: root/meta/classes/terminal.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-18 13:19:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-19 08:47:36 -0800
commit1dc9e9c3c5d841502ff4b2e42832c201e58d7ebf (patch)
treedeb8284b0d96e7ba740f33a024b50b3517d95493 /meta/classes/terminal.bbclass
parentc723d1a38f35d5922eac113b6071748199742631 (diff)
downloadpoky-1dc9e9c3c5d841502ff4b2e42832c201e58d7ebf.tar.gz
devshell.bbclass: Allow running devshell and fakeroot together
Currently its hard to run a devshell complete with fakeroot context. This patch allows the fakeroot flag on the task to do this, as with any other task. Since we may need to start X terminal applications, we need to only start the fakeroot session on the final command, hence the hoops this code jumps through. As always with fakeroot, you can break out and run a command without the fake permissions with syntax like "PSEUDO_UNLOAD=1 <command>" [YOCTO #3374] (From OE-Core rev: 0a2662a48eaf0487db043c348e2834bb9cdd0466) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/terminal.bbclass')
-rw-r--r--meta/classes/terminal.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index d5a6277896..8cebad4162 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -25,6 +25,11 @@ def oe_terminal(command, title, d):
25 if value is not None: 25 if value is not None:
26 os.environ[export] = str(value) 26 os.environ[export] = str(value)
27 env[export] = str(value) 27 env[export] = str(value)
28 if export == "PSEUDO_DISABLED":
29 if "PSEUDO_UNLOAD" in os.environ:
30 del os.environ["PSEUDO_UNLOAD"]
31 if "PSEUDO_UNLOAD" in env:
32 del env["PSEUDO_UNLOAD"]
28 33
29 # Add in all variables from the user's original environment which 34 # Add in all variables from the user's original environment which
30 # haven't subsequntly been set/changed 35 # haven't subsequntly been set/changed