]> code.ossystems Code Review - openembedded-core.git/commitdiff
devshell: allow the starting directory to be overridden
authorRoss Burton <ross.burton@intel.com>
Wed, 11 Mar 2015 10:00:41 +0000 (10:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Mar 2015 17:38:34 +0000 (17:38 +0000)
Some people like to have the devshell start in ${B} instead of ${S}, so allow
this to be overridden.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/devshell.bbclass

index 41164a3f3359ead5f0b8fe8bb47158838a85df1d..445143647398b210cf0ff5e4437ef5b481ab629f 100644 (file)
@@ -17,7 +17,9 @@ python do_devshell () {
 
 addtask devshell after do_patch
 
-do_devshell[dirs] = "${S}"
+# The directory that the terminal starts in
+DEVSHELL_STARTDIR ?= "${S}"
+do_devshell[dirs] = "${DEVSHELL_STARTDIR}"
 do_devshell[nostamp] = "1"
 
 # devshell and fakeroot/pseudo need careful handling since only the final