summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-03-11 10:00:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:38:34 +0000
commit217af639d13258429949b14c67110650288cba7a (patch)
tree9bd2ab5f5638bf6d7f9c6969bc14be68411ddc91
parent5f85a7549d119177c5d39f965b949e957e07867e (diff)
downloadopenembedded-core-217af639d13258429949b14c67110650288cba7a.tar.gz
openembedded-core-217af639d13258429949b14c67110650288cba7a.tar.bz2
openembedded-core-217af639d13258429949b14c67110650288cba7a.zip
devshell: allow the starting directory to be overridden
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>
-rw-r--r--meta/classes/devshell.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 41164a3f33..4451436473 100644
--- a/meta/classes/devshell.bbclass
+++ b/meta/classes/devshell.bbclass
@@ -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